if a dataset is already created with fixed length but after
that i want to change fixed length to variable length then
how is it possible
Answers were Sorted based on User's Feedback
Answer / vibhu
we can do that using Jcl and passing FTOV in the sysin
parameter
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / varsha
You can convert an FB data set to a VB data set with
OUTFIL's FTOV parameter. Each VB output record has a 4-byte
RDW followed by the corresponding data from the FB input
record, and the length in the RDW is the length of the FB
record plus 4.
The following JCL and DFSORT control statements convert the
bookstore data set records from FB to VB.
//FBVB JOB A92,PROGRAMMER
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=A123456.SORT.SAMPIN,DISP=SHR
//VBOUT DD DSN=A123456.SORT.VSAMP,DISP=
(NEW,CATLG,DELETE),
// UNIT=3390,SPACE=(CYL,(5,5))
//SYSIN DD *
OPTION COPY
OUTFIL FNAMES=VBOUT,FTOV
/*Because the LRECL of SORT.SAMPIN is 173 bytes, each VB
record in SORT.VSAMP is 177 bytes (the FB record length of
173 plus 4 for the RDW) and SORT.VSAMP is given an LRECL of
177.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mainframesasi
No it is not possible the values which we have defined
while creating dataset in 3.2 is the final.
| Is This Answer Correct ? | 1 Yes | 6 No |
what is the advantage of sync class
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
What is Pic 9v99 Indicates in COBOL?
0 Answers SwanSoft Technologies,
what is jcl approach for programming?
why we are using picture clause in the cobol programs?
If we use GO BACK instead of STOP RUN in cobol?
How will you find the currepted records in a file
is it mandatory to give data division before procedure division ? wht happens if i give procedure division first thn data division ? reply soon
HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?
What is the default value of DISP parameter?
There is a variable with value 19446. Requirement is to convert it to 194.46. I tried it by doing divide by 100 and my receiving field data type is 9(03)v99. But the output is 194. I am not getting the decimal value. Could anyone pls let me know how to get this done?
input:- A 10 20 30 40 B 5 7 10 14 C 8 12 14 16.... output:- A = 100,B=36,C=50. Here spaces are considered between numbers. When we give input as above, the numbers should be added n displayed.So please help me out.