You can use DFSMSdss COPY DS for Compatible FlashCopy® V2 dataset copy operations.
For COPY DS command parameter descriptions, see Using DFSMSdss to establish Compatible FlashCopy V2 relationships by volume.
When you execute the COPY DS command, DFSMSdss determines whether the selected volumes meet the requirements for use as Compatible FlashCopy® V2 volumes, and automatically determines if the copy is from the host or not. DFSMSdss processes the COPY DS command and establishes the Compatible FlashCopy® V2 relationship as it completes the processing. The job completion is not reported.
The following example shows use of the DFSMSdss COPY DS command to perform Compatible FlashCopy® V2 dataset copy operations. In this example, all datasets starting with SAM020 on volume FCPY05 are copied to volume FCPY06.
//DSSCOPY JOB //* //INSTIMG EXEC PGM=ADRDSSU //SYSPRINT DD SYSOUT=* //SYSUDUMP DD SYSOUT=V,OUTLIM=3000 //VOL1 DD UNIT=3390,VOL=SER=FCPY05,DISP=OLD //VOL2 DD UNIT=3390,VOL=SER=FCPY06,DISP=OLD //SYSIN DD * COPY DS(INCL(SAM020.**)) INDDNAME(FCPY05) OUTDDNAME(FCPY06) FASTREPLICATION(PREFERRED) - FCNOCOPY DEBUG (FRMSG(DETAILED)) /*
You can establish up to 16 relationships simultaneously from a single copy source extent.