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 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: 2285
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 Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm

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