Hi,
May I please ask again...
Is it possible to sort groups of records when the sort key is always in the second record pos 10thru14 (and this record is identified as KEY in the first 3 positions). For instance:
HDR 043434
KEY 10001
R01 lllll
R01 KKSDKSKD
HDR 0101010
KEY 10000
R03
Each record has 'record identifier' in the first 3 positions. Each group starts from 'HDR', then goes 'KEY', then can go any number of any different record types(except HDR and KEY). The group of record ends when the next 'HDR' comes, or EOF. The order of records withing each group should not change. The record length let's say 80B.
The result I need :
HDR 0101010
KEY 10000
R03
HDR 043434
KEY 10001
R01 lllll
R01 KKSDKSKD
Thank you so much in advance,