Problem:
The documentation and source for VRECGEN are unclear at times.
Resolution:
This is what one needs to do:
- Take the host VSAM user file and od an IDCAMS REPRO on it
using DCB=(RECFM=VB, LRECL=recordlength, BLKSIZE=recordlength 4)
- Define the output dataset as DCB=(RECFM=VB,LRECL=recordlength 4,
BLKSIZE=LRECL 4)
So a 60 byte file would be defined having an output file from VRECGEN as DCB=RECFM=VB,LRECL=64,BLKSIZE=68). The input file could just use a DISP=SHR since the IDCAMS REPRO would have defined that file as DCB=RECFM=VB, LRECL=60,BLKSIZE=64)
#EnterpriseDeveloper
#MFDS