Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I NEED JCL TO MERGE 2 FILES INTO 1

Status
Not open for further replies.

layo

Technical User
Feb 29, 2000
2
US
Does anyone have JCL that will merge 2 files into 1? Thanks in advance?
 
You can use IDCAMS, SYNCOSRT would also work. SYNCSORT is good if you need to select records, summarise, sort, etc. Following is a IDCAMS example:<br>
<br>
//STEP1 EXEC PGM=IDCAMS <br>
//SYSPRINT DD SYSOUT=*<br>
//DD1 DD DSN=FILEIN1,DISP=SHR<br>
// DD DSN=FILEIN2,DISP=SHR <br>
//DD2 DD DSN=FILEOUT,DISP=SHR <br>
//SYSIN DD * <br>
REPRO - <br>
INFILE(DD1) - <br>
OUTFILE(DD2) <br>
/* <br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top