i want this to be sorted on the basis of the text 'HICSB5B0' such that HICSB5B0 is above HICSD140......and also the text related to HICSD140 shud be attached with HICSD140 and text with HICSB5B0 shud remain with HICSB5B0, only the position is to be shifted based on alphbetical order....can it be done by sort or any other method ?
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
If all groups are 4 lines then override DCB and refer to the records as LRECL=320 (assuming 4*80 bytes). Sort on column 17,8 CH,A and then recopy SORTOUT overriding DCB back to LRECL=80.
You may need the ALTSEQ to sort hex A-F after 0-9.