I've given the sort control cards from position 2 only. I think this is a problem with my editor, as I'm coding it here directly instead of pasting the content.
The $ sign is showing at OVERLAY statement.
I'm sure that the error is causing due to the multiple OUTRECS coded in each OUTFIL.
When I removed the OUTREC in OUTFIL FILES =02 and 03, it is working fine.
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
Quote:
When I removed the OUTREC in OUTFIL FILES =02 and 03, it is working fine
Are you sure, it is giving you the expected results? If it does not, then it IS NOT 'working fine'.
If you are ok to build a new trailer, and skip the original trailer, this might help, and maybe easier to understand. This is the alternative explained earlier in this thread.
Also I tried the below code and couldn't get the perfect count in the trailer record after the file split. Assume my input file has 90 records and each split may contain 30 records. The below sort is throwing (no it isn't - it is showing a) record count of 100 in the trailer record in all the three split files.
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
Well, no you didn't. OUTREC is a parameter on OUTFIL, is what you discovered in the example. This is entirely different from... OUTREC. Note the comma indicating a continuation. All that OUTREC on OUTFIL is, is BUILD.