Posted: Mon Sep 17, 2007 8:13 am Post subject: Remove Duplicate Headers and Trailers
I have an Input File of LRECL=80 with multiple header,detailed and trailer record
The First three Bytes=
HDR represents header Record
DET represents Detailed Records
TRL Represents the Trailer record
I need to extract the first header record, the detailed records and the last trailer record.The intermediate header and trailer records has to be deleted
NOTE:The first header record value and the intermediate header record value need not be same only the first three bytes will be same
Similarly the last trailer record value and the intermediate trailer record value need not be same only the first three bytes will be same
Is it possible to solve the problem using PGM=SORT in one step (one pass)
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Mon Sep 17, 2007 9:54 am Post subject:
Quote:
Is it possible to solve the problem using PGM=SORT in one step (one pass)
Dinesh Kumar,
AFAIK Getting the last trailer record within 1 one pass is kinda difficult. I can get the 1st header and details without any problem. If 2 passes of the data is okay then let me know
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum