Please Let me know USING SORT how to sort records between header and trailer . I have searched for posts . But all are using either ICEMAN or ICETOOL ........ Pls let me know how that can be done using EXEC PGM=SORT ??
Joined: 22 Apr 2006 Posts: 6258 Location: Mumbai, India
Link & indication provided by Murali should have worked for you. Try below JCL, it should work for you (SyncSort site)
Input file is of LRECL=80 & I assume Header & Trailer are determined by 'H' & 'T' as their first letter.
But all are using either ICEMAN ........ Pls let me know how that can be done using EXEC PGM=SORT ??
PGM=ICEMAN and PGM=SORT are equivalent. They both invoke the sort product at your site (DFSORT, Syncsort, CA-Sort). Of course, the sort products are different, but PGM=ICEMAN vs PGM=SORT has nothing to do with that.