I have a sequential file with header and trailer records. I have to put the header and trailer records in a different file for processing.
I was thinking of using COUNT operator to do it (getting the count and pulling record1 and record(count-1) ). But I do not know how exactly to do this.
Appreciate if someone could provide some information on this or anyother better way to do this.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Daphne,
I need some more information before I can show you how to do what you want to do.
Is there anything that identifies the header (e.g. 'HDR' in positions 1-3) or trailer (e.g. 'TRL' in positions 1-3) or are they just identified by being the first and last record in the file, respectively?
What is the RECFM and LRECL of the input file?
Please show an example of your input records and what exactly you want for output (one output file with just the header and trailer? another output file without the header and trailer? or what?).
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Daphne,
If you or anyone else on this board would like some documents prepared by the DFSORT Team that describe what we see as the advantages of DFSORT over Syncsort, as well as considersations for migrating from Syncsort to DFSORT, send me an e-mail offline (yaeger@us.ibm.com). Please put "DFSORT" somewere in your Subject line to catch my attention.