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
 
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: 2287
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 Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 6 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
No new posts Matching and unmatched records!! Vignesh Sid SYNCSORT 3 Thu Nov 09, 2017 11:22 am

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