FILE1
RECORDS NUMBER
1111 ABC
1110 LMN
1121 PQR
1123 XYZ
My requirement is to sort this file on the basis of 1st four bytes after skipping the first 2 header records. After sort, the output file should look like -
The header records should also be written to the output file.
Code:
FILE1
RECORDS NUMBER
1110 LMN
1111 ABC
1121 PQR
1123 XYZ