IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Skip Header and Trailer and then merge all records again


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 2481
Location: @my desk

PostPosted: Fri Nov 13, 2009 12:33 pm
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 Developer


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

PostPosted: Fri Nov 13, 2009 10:43 pm
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:

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Join multiple records using splice DFSORT/ICETOOL 5
Search our Forums:

Back to Top