I would like to merge multiple files of different record length into a variable length file. The input files are either 88, 104, or 163 record (fixed) length. I am trying to merge them into a single variable length file of 1004.
I tried using IEBGENER where I concatenated the files as a part of the SYSUT1 statement. (there are 30+ files to merge, so I was trying to keep this simple with a single JCL step and concatenating the files to merge)..
My SYSUT2 statement defines a VB file of lrecl 1004.
When I check the JCL, I get the following errors:
***ERROR - DSS4880E - LRECL " 104" CANNOT BE CONCAT. WITH LRECL " 88"
***ERROR - DSS4880E - LRECL " 163" CANNOT BE CONCAT. WITH LRECL " 88"
I suppose I could IEBGENER each of the 30+ files into a VB file of length 1004, then merge all those at the end. This would require many more steps though.... Thoughts? Many thanks!
INREC IFTHEN=(WHEN=(&MULTIINDD,EQ,C’nn’), input from lrecl #1?
BUILD=(1,lrecl1,lllX)), Extend record to the full desired size
. . . . . .