View previous topic :: View next topic
|
Author |
Message |
Shirazpasha
New User
Joined: 24 Nov 2006 Posts: 14 Location: India
|
|
|
|
Hi,
I have a requirement where in i have to merge 3 files by stripping out their header and trailer records and add a new header and trailer where the header would contain the file version and the trailer would contain the record count with including the header and trailer.
Pls let me know how to do this using DFSORT.
Thanks for the help in advance. |
|
Back to top |
|
|
manihcl85 Warnings : 1 New User
Joined: 11 Jan 2007 Posts: 52 Location: chennai
|
|
|
|
Hi,
use "OMIT REC" for eliminating header and trailer. then comute the total using "TOT" function .
Regards,
Mani |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Pasha,
What is the RECFM and LRECL of each input file?
Please show an example of the records in each input file and the records you expect for output. |
|
Back to top |
|
|
Shirazpasha
New User
Joined: 24 Nov 2006 Posts: 14 Location: India
|
|
|
|
Hi Frank,
RECFM = FB
LRECL = 133
All the 3 files follow the same format.
William,
That pdf is of great help, I have just begun to go thru it.
Thank you all for the help
Regards,
Pasha |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
All the 3 files follow the same format. |
I asked you to "Please show an example of the records in each input file and the records you expect for output.". Saying that all 3 files follow th same format doesn't satisfy that request. If you want specific help with this, please provide what I requested.
Quote: |
That pdf is of great help, I have just begun to go thru it. |
I'm glad it's helpful - I wrote it. |
|
Back to top |
|
|
|