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>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.