JCL

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.

JCL

How to Allocate a Page Dataset

Here’s a simple way to allocate a new Page Dataset via batch job: //DEFPGSPC EXEC PGM=IDCAMS //SYSPRINT DD   SYSOUT=* //SYSIN    DD   * DEFINE PAGESPACE (  – NAME(page_dataset_name) – CYLINDERS(number_cyls) – VOLUME(volume_name))   Substitute the following values on the above JCL to meet your requirements: page_dataset_name – Name of the Page […]

JCL

ADRDSSU – Full Volume Physical Copy

The following JCL code allows you to perform a full volume physical copy using the ADRDSSU utility: //STEP1 EXEC PGM=ADRDSSU,REGION=0M //SYSPRINT DD SYSOUT=* //INVOL1 DD VOL=SER=volser1,UNIT=3390,DISP=SHR //OUTVOL1 DD VOL=SER=volser2,UNIT=3390,DISP=SHR //SYSIN DD * COPY FULL – INDDNAME(INVOL1) – OUTDDNAME(OUTVOL1) – ALLDATA(*) – ALLEXCP – CANCELERROR – COPYVOLID – ADMINISTRATOR – PURGE […]