Copying from DASD

The example below shows how to use IEBGENER to copy DASD output to a DASD data set. After the dump is successfully copied, use the AMDSADDD REXX utility to clear (reinitialize) the dump data set and ready it for another stand-alone dump. For more information, see:
Use the JCL shown in Figure 1 to invoke IEBGENER, which will copy the stand-alone dump output from a DASD data set to another DASD data set.
Figure 1. Example: Copying stand-alone dump output from DASD to DASD
//SADCOPY  JOB  MSGLEVEL=(1,1)
//COPY     EXEC PGM=IEBGENER
//SYSPRINT DD   SYSOUT=A
//SYSIN    DD   DUMMY
//SYSUT1   DD   DSN=SYS1.SADMP,UNIT=DASD,
//         VOL=SER=SADMP1,DISP=SHR
//SYSUT2   DD   DSN=SYS2.SADMP,UNIT=DASD,
//         DISP=(NEW,CATLG),
//         VOL=SER=SADMP2,
//         DCB=(LRECL=4160,RECFM=FBS,DSORG=PS),
//         SPACE=(CYL,(90,0),RLSE)