VB dataset has a 4-byte RDW(Record Descriptor Word) followed by corresponding data from FB input record, And the length in the RDW is the length of FB record+4.
We can convert FB dataset to VB dataset with OUTFILs FTOV parameter.
Below is an example JCL which will convert a FB input dataset to VB output dataset.
//MXA0270A JOB A007,PROGRAMMER //STEP010 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD DSN=INPUT.DATASET,DISP=SHR //SORTOUT DD DSN=OUTPUT.DATASET,DISP=(NEW,CATLG,DELETE), // UNIT=3390,SPACE=(CYL,(5,5)) //SYSIN DD * OPTION COPY OUTFIL FNAMES=SORTOUT,FTOV /*
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!