Posted: Tue Jan 18, 2011 11:11 pm Post subject: Append records between header & trailer
Hi,
I have two files file01 & file02. I need to concatenate both files and output should be in the format of file03. In each input file the trailer record indicate the no of records in the file.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Wed Jan 19, 2011 11:36 am Post subject:
sivafdms,
You have been a member for close to 4 years now and you still haven't provided complete details.
1. What is the LRECL and RECFM of file 1 and file2?
2. Is there anything that distinguishes the header and trailer records in both files?
3. Is the final count on the trailer record just 1 byte? what is the format of the count?
4. Did you misspell the word TRAILER?
5. What sort product are you using?
Sorry for not providing all the details. Please find them below
1.The LRECL=80 & RECFM=FB of all the three files.
2.Header is identifiled by HDR & Trailer by TLR.
3.The maximum count can be of 9999999. Format is numeric.
4.Yes.
5.DFSORT.
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