Joined: 12 Feb 2015 Posts: 6 Location: México,D.F.
Bill Woodger wrote:
Post the sysout from a CA-SORT step and the output from your DFSORT step, please, and we can see.
The output is as follows:
ICE201I H RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE222A 0 718 BYTE FIXED RECORD LENGTH IS NOT EQUAL TO 926 BYTE LRECL FOR SORTOU
ICE751I 0 C5-K62149 C6-K90026 C7-K58148 C8-K67572 E4-K58148 E7-K70685
ICE052I 3 END OF DFSORT
Joined: 08 May 2006 Posts: 1110 Location: Dublin, Ireland
If you add the lengths of the fields you are placing in OUTREC, you'll see they add to 718 - which is what DFSORT is reporting in the ICE222A message. If you change the last line as Bill suggested you'll get the record padded as required.