Joined: 20 Jun 2006 Posts: 2 Location: Netherlands
I'm having a problem when I do a repro (IDCAMS) in a VSAM dataset. He only accepts it if I download it into a VB dataset. Is any way to make a copy of VSAM into a sequential FB dataset? Thanks in advance, Crismelo
Joined: 14 Jun 2006 Posts: 331 Location: Jacksonville, FL
I don't think a dataset that was REPRO'ed to VSAM as a variable file can be REPRO from VSAM to QSAM as a fixed file.
Check the record size for your VSAM file.
If you see something like: RECORDSIZE(160 160) then you are dealing with a FIXED file (FB) and it could be REPRO'ed out with FB,160,27840
If you see something like: RECORDSIZE(160 4096), then you are dealing with a VARIABLE file (VB). 160 would indicate the shortest of your variable length records.
You can write the dataset out your REPRO as VB. That dataset could then be converted to fixed using DFSORT, FILEAID, SYNCSORT, etc.
Here is a SORT example:
//S4SORT EXEC PGM=ICEMAN
//* DCB on Input file would be VB, 164, 16400
//SORTIN DD DSN=VARIABLE.INPUT.FILE,DISP=OLD
//SORTOUT DD DSN=FIXED.OUTPUT.FILE,
//SYSOUT DD SYSOUT=*
//* Starting in position 5 of the variable record and copied to 160 positions
//* VLFILL will insert blanks for all records shorter than 160 positions
//SYSIN DD *