Copy content of one Dataset into another using IEBCOPY

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

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.