No other records except Header and Trailer will start with HH and TT.
I have to sort the records between header and trailer and the output file should also have the Header and trailer as it is in the input file. At present i am copying the the header and trailer records to two temp files and merging it with the sorted file.
Is there any other way to do the same?
Please note that I am using DFSORT.