Can we do below with DFSORT?..
Both Input and output file is 80 bytes length.. TITLE 1,TITLE 2 and HEADER will be same for all group.
Input file:
TITLE 1
TITLE 2
HEADER
Karthik
REC1
REC2
Mohan
REC1
REC2
TITLE 1
TITLE 2
HEADER
Karthik
REC3
REC4
Mohan
REC3
REC4
REC5
Output file:
TITLE 1
TITLE 2
HEADER
Karthik
REC1
REC2
REC3
REC4
TITLE 1
TITLE 2
HEADER
Mohan
REC1
REC2
REC3
REC4
REC5
Thanks,
Nagarajan