Looking for quick help in finding approach to get solution. My input file is a VSAM file with LRECL=500 and key=100 have a set of records and the file has to be sorted on those sets i.e one set of records needs to be sorted on one position and other set of records to be sorted on other. Just for example below are the 4 types and sort criteria
ACCOUNT_TYPE --> sort position (105,1),(20,60)
BILL_CLASS --> sort position (101,47)
BILL_SUB_CLASS --> sort position (20,3),(151,1),(100,44)
COUNTRIES --> sort position (105,1)
Below is the sample file, just for reference. Since the file length is 500. I just copied first 72 bytes from the files which are a part o key.
<===+====10===+====2====+====3====+====4====+====5====+====6====+====7==
**** Top of data ****
ACCOUNT_TYPE smile current account
ACCOUNT_TYPE smile personal loan
BILL_CLASS 015
BILL_CLASS 016
BILL_CLASS 017
BILL_CLASS 018
BILL_CLASS 019
BILL_SUB_CLASS 001001
BILL_SUB_CLASS 002001
COUNTRIES Abudhabi
COUNTRIES Afghanistan
COUNTRIES Aland Islands
COUNTRIES Albania
COUNTRIES Algeria
COUNTRIES American Samoa
**** Top of data ****
ACCOUNT_TYPE smile current account
ACCOUNT_TYPE smile personal loan
BILL_CLASS 015
BILL_CLASS 016
BILL_CLASS 017
BILL_CLASS 018
BILL_CLASS 019
BILL_SUB_CLASS 001001
BILL_SUB_CLASS 002001
COUNTRIES Abudhabi
COUNTRIES Afghanistan
COUNTRIES Aland Islands
COUNTRIES Albania
COUNTRIES Algeria
COUNTRIES American Samoa
Please hep to find the approach and let me know if need any other details.Thanks