Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Skip Header and Trailer and then merge all records again

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Bharti P Manglani

New User


Joined: 13 Mar 2007
Posts: 16
Location: Pune

PostPosted: Fri Nov 13, 2009 11:20 am    Post subject: Skip Header and Trailer and then merge all records again
Reply with quote

Hi All,

I have a file with header, trailer and remaining records. I need to omit my header and trailer and sort remaing records.

Then again I need to merge my sorted records along with my Header and Trailer records.

I can use OMIT COND to omit my header and trailer records. But then once I have temporary file with my sorted records; how do I merge all records (header,trailer and sorted ones) again?

Can header and trailer records be stored in Temporary files also after omitting them?
Back to top
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2276
Location: @my desk

PostPosted: Fri Nov 13, 2009 12:33 pm    Post subject:
Reply with quote

Bharti P Manglani,

If you provide some more details, somebody will be able to help.

1. How does your header/trailer records look like?- Are they fixed or can vary based on the input?
2. Is there something in your header/trailer records which can be used to dstinguish them from the data records. for e.g. 'HEADER' at pos 1-6 for header record.
3. Input and output RECFM/LRECL
4. position,length and format of the key field.
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 Nov 13, 2009 10:43 pm    Post subject:
Reply with quote

BM,

You can use the DATASORT operator of DFSORT's ICETOOL to do this kind of thing. For more information, see the "Sort detail records between headers and trailers" Smart DFSORT Trick at:

http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000094
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us