Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Merge files, eliminate header and trailer and add new ones

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Shirazpasha

New User


Joined: 24 Nov 2006
Posts: 14
Location: India

PostPosted: Wed Feb 07, 2007 10:07 am    Post subject: Merge files, eliminate header and trailer and add new ones
Reply with quote

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
View user's profile Send private message

manihcl85
Warnings : 1

New User


Joined: 11 Jan 2007
Posts: 52
Location: chennai

PostPosted: Wed Feb 07, 2007 3:23 pm    Post subject:
Reply with quote

Hi,

use "OMIT REC" for eliminating header and trailer. then comute the total using "TOT" function .

Regards,
Mani
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Feb 07, 2007 4:04 pm    Post subject:
Reply with quote

Did you look at Smart DFSORT Tricks ?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Feb 07, 2007 9:35 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Shirazpasha

New User


Joined: 24 Nov 2006
Posts: 14
Location: India

PostPosted: Thu Feb 08, 2007 11:15 pm    Post subject: Re: Merge files, eliminate header and trailer and add new on
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Feb 09, 2007 1:57 am    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts Updating multiple counts in trailer!! Vignesh Sid SYNCSORT 4 Mon Nov 06, 2017 1:04 pm
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us