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 does the initialize statement do ?
When search all is used in cobol program without sorted input data?
6 Answers CGI, Principal Finance,
I have two files , file1 is input file it contains 10,20,30,....,records but i want to display the records in file 2 as reverse order .how can we do by using jcl& cobol(dont use array) please any one can tell me the answer
S9(5)V9(2) occupies how many bytes memory ?
how do you reference the variable unblock file formats from cobol programs
In an array processing what is the thing that can be done by using subscripts but not by using index
Mention the guidelines to write a structured cobol program?
How include time & date in the report generation in cobol programing?
when SE37 SB37 and sd37 occurs how to increase the volume , primary quantity and secondary quantity?
How to remove 2 duplicate records and copy only one using job control language?
what is the difference between perform varying and perform until
tell me about examine inspect and evaluate ?