Joined: 16 Mar 2007 Posts: 8 Location: State of Arizona
Is there a way to create more than one output record per input record on the "outrec" in iceman? the first outrec pulls from the input, but the remaining are just static records.
I am pulling programs from a source library, capturing the compile proc for that program and creating execute JCL. I was using iceman to do the JCL and it works now, but need to add 2 more records for symbolic
usage.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Quote:
Is there a way to create more than one output record per input record on the "outrec" in iceman?
The OUTFIL statement can be used to create more than one output record per input record in several ways including the use of / in BUILD, and the use of HEADERx and TRAILERx. How you would do it exactly depends on exactly what you want to do.
If you need more help, give an example of the records in the input file and what you expect for output, and explain the "rules" for getting from input to output.
Joined: 16 Mar 2007 Posts: 8 Location: State of Arizona
Works great with the exception that I had to change my output record to 37 bytes instead of 80. Instead of using an iebgener to convert to 80 bytes, is there an easier way using ICEMAN?
Error received:
[size=7]ICE201I E RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE222A 0 37 BYTE FIXED RECORD LENGTH IS NOT EQUAL TO 80 BYTE LRECL FOR SORTOUT
ICE751I 0 C5-K26318 C6-K90007 C7-K90000 C8-K23476 E9-K90007 E7-K24705
ICE052I 3 END OF DFSORT [/size]
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Carol,
If you had just mentioned that your input records were 37 bytes and you wanted output records of 80 bytes, then Kolusu would have shown you how to handle that in the first place. He and everyone else was assuming that your input records were 80 bytes and you never said otherwise. In the future, please give the RECFM and LRECL of your input file and output file so people don't have to make assumptions.