I have a requirement, to sort all records except header. In output file i want header as it is and remaining detail records needs to be in sorted order.
I used below jcl in test environment, it worked because of having new version of DFSORT. In other environment still not yet upgraded. we can see below msg, it indicates the old version where datasort doesn't work.
ICE201I E RECORD TYPE IS F - DATA STARTS IN POSITION 1
So when i am trying to run below job it is giving RC 12.
Joined: 22 Apr 2006 Posts: 6258 Location: Mumbai, India
You've not shown the input and expected output from that. Can header be identified by somehting, like 'HEDR' at first 4-positions.
By using a special key of '0' for the header record, '1' for the data records and '9' for the trailer records before the regular key, you can ensure that the header is first and details are after that and sorted.