The following JCL will allow you to copy the content of one dataset into another via batch job:
//COPY EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//IN DD DISP=SHR,DSN=USER1.MYDATA.EXAMPLE
//OUT DD DISP=SHR,DSN=USER2.MYDATA.FORYOU
//SYSIN DD *
COPY INDD=IN,OUTDD=OUT
Replace USER1.MYDATA.EXAMPLE and USER2.MYDATA.FORYOU by your own dataset names.
Be the first to comment