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

help required on Merge utility


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rohit4u

New User


Joined: 06 Oct 2006
Posts: 6

PostPosted: Thu Nov 16, 2006 9:25 pm
Reply with quote

Hi, I hava requirement as follows.
I have two files
1. header file
2. Detail fiel.
Header file has last column 123 for 1 record
and also detail file has last columns 123 for 3 records. i mean these two files to be merged like
1 header record followed by 3 detail records (last column 123). Please let me know how to merge like this?

Thanks for the help in advance.

Regards,
Rohit
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: Thu Nov 16, 2006 9:46 pm
Reply with quote

If you have a header file and a detail file, both with RECFM=FB and the same LRECL, and you want an output file with the header records followed by the detail records, you can use this DFSORT job:

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  header file
//       DD DSN=...  detail file
//SORTOUT DD DSN=...  output file
//SYSIN    DD    *
  OPTION COPY
/*


Note that this is a copy, not a merge. A merge requires the use of a key for previously sorted files.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts REASON 00D70014 in load utility DB2 6
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
This topic is locked: you cannot edit posts or make replies. Merge 2 input files based on the reco... JCL & VSAM 2
No new posts Merge 2 input files after sort SYNCSORT 14
Search our Forums:

Back to Top