I'm very confused as to how to complete the below requirement. I tried using SORT but not got desired result.
input file
----------
START AAAAAA 030054 000001 0801
MIKE EMPLOYEE DETAILS
11111111111111111111111111111111111111111 XXXX
22222222222222222222222222222222222222222 XXXX
MARK EMPLOYEE DETAILS
11111111111111111111111111111111111111111 YYYY
22222222222222222222222222222222222222222 YYYY
START BBBBBB 030054 000001 0801
JOHN EMPLOYEE DETAILS
11111111111111111111111111111111111111111 ZZZZ
22222222222222222222222222222222222222222 ZZZZ
TREJ EMPLOYEE DETAILS
11111111111111111111111111111111111111111 WWWW
22222222222222222222222222222222222222222 WWWW
..
MIKE EMPLOYEE DETAILS
11111111111111111111111111111111111111111 XXXX
22222222222222222222222222222222222222222 XXXX
MARK EMPLOYEE DETAILS
11111111111111111111111111111111111111111 YYYY
22222222222222222222222222222222222222222 YYYY
START BBBBBB 030054 000001 0801
JOHN EMPLOYEE DETAILS
11111111111111111111111111111111111111111 ZZZZ
22222222222222222222222222222222222222222 ZZZZ
TREJ EMPLOYEE DETAILS
11111111111111111111111111111111111111111 WWWW
22222222222222222222222222222222222222222 WWWW
..
MIKE AAAAAA XXXX
MARK AAAAAA YYYY
JOHN BBBBBB ZZZZ
TREJ BBBBBB WWWW
MARK AAAAAA YYYY
JOHN BBBBBB ZZZZ
TREJ BBBBBB WWWW
As shown above START tells the start of the particular group of records. Just looking for an outline of how can I handle this situation.
Thanks A Lot!!!!