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
Answer Posted / 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 |
Post New Answer View All Answers
How you can characterize tables in cobol?
What is the utilization of copybook in cobol?
example for sub strings ? and refernce modifications whit output pls
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What are the pertinent COBOL
What is length is cobol?
What is the difference between PIC 9.99 and PIC9v99?
What is the use of intialize verb?
Write a program to explain size error.
State the various causes of s0c1, s0c5 and s0c7.
What is Pic 9v99 Indicates in COBOL?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Why occurs cannot be used in 01 level in COBOL?
i want a program using by if, evaluate , string, unstring, perform, occurs?
what is s000 u4087 error? please give the all error codes in cobol,jcl.