Good afternoon, all. Good afternoon, Frank
Long time no see:) I hope you all are well.
May I please ask again.
I have a file with group of records, each group has a header and the trailer. I need to extract one group.
For instance:
001HEADER
111 DATA 1
222 DATA 2
Trailer
002HEADER
333 DATA 3
111 DATA 1
Trailer
005HEADER
555 DATA 5
Trailer
After I run the SORT -> I need to have the file with the followng data ( extract the group with the header value '002':
002HEADER
333 DATA 3
111 DATA 1
Trailer
( it means based on the header value '002' I extracted the header, all the item records in the same order and the trailer).
Thanking so much in advance,
Irene.