Hi,
I have an input file containing header & trailer.
a) Key field starts Pos1 and length = 10
b) file has RECFM=FB and LRECl=80
header contains word 'HEADER' + other fields
Trailer contains word 'TRAILER' + other fields
My requirement :
1. Sort the file based on Key field excluding Header & trailer
2. Write all records which are duplicates (based on key field values) to another file.
I can do it in 2 steps but need to do both above in one Step only.
Please help. Thanks