FDRCOPY using FDRINSTANT Examples
This section contains examples of the use of FDRCOPY with FDRINSTANT. FDRINSTANT is described in more detail in:
- Working-with-FDRINSTANT-for-Dell-EMC-TimeFinder
- Working-with-FDRINSTANT-for-Hitachi-ShadowImage
- Working-with-FDRINSTANT-for-FlashCopy
Depending on the type of DASD subsystem you are using; there are more examples for each subsystem in those sections. All examples in this section are found in the JCL library installed with FDR. The member names are EX2114x.
FDRINSTANT is an additional cost enhancement to FDR.
The examples below demonstrate another FDRINSTANT enhancement for FDRCOPY. They show how you can “freeze” a point-in-time copy of an online DASD volume to another offline volume, and then copy data sets from that frozen offline copy.
FDRCOPY and Metro Mirror interaction
Metro Mirror primary volumes can be the target of FDRCOPY operations. FDRINSTANT determines if the target volume is FlashCopy capable. If FlashCopy is provided, FDRINSTANT copies or moves the data to the target volume using FlashCopy. The use of FlashCopy to a Metro Mirror primary volume causes the Metro Mirror relationship to transfer data to the remote mirror (duplex pending state) to regain synchronization and re-achieve duplex state. During the “duplex pending state”, the remote mirror is considered to be inconsistent. The length of this inconsistent exposure is dependent on the data transmission time. HyperSwap is disabled when any pair goes into duplex pending state.
FDRINSTANT supports the use of FlashCopy Preserve Mirror (Remote Pair FlashCopy). Preserve Mirror prevents the exposure of the Metro Mirror entering “pending” state by performing FlashCopy operations on both the local and remote sites.
Preserve Mirror FlashCopy is invoked by specifying the REMOTEINSTANT= operand on the main control statement.
Instant copy with SnapShot example
Data sets are to be copied from a Dell EMC Symmetrix with the TimeFinder/Clone or TimeFinder/Snap feature. The step SNAP snaps PROD01 to 01FA, creating a point-in-time image of the volume. Step COPY copies the snapped copy of data sets from volume PROD01 to new names on a new volume. After the copy is complete, FDRCOPY releases all of the back-end (internal DASD) storage associated with the snapped volume. For more information, see Working with FDRINSTANT for Dell EMC TimeFinder.
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//TAPE1 DD DUMMY
//SYSIN DD *
SNAP TYPE=FDR
MOUNT VOL=PROD01,SNAPUNIT=01FA
/*
//COPY EXEC PGM=FDRCOPY,REGION=0M,COND=(0,NE,SNAP)
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//DISK1 DD UNIT=SYSALLDA,VOL=SER=PROD01,DISP=OLD
//SYSIN DD *
COPY TYPE=DSF,SNAP=(USE,REL)
SELECT DSN=LEDGER**,NEWI=LEDTST,NVOL=TEST*
/*
Instant copy from Dell EMC BCV example
Data sets are to be copied from a Dell EMC Symmetrix with the TimeFinder/Mirror feature. The BCV at address 01FA has been permanently assigned to online non SMS-managed volume “PROD01” at address 01E4; a previous one-time ESTABLISH has been issued to establish that pairing. The step SPLIT splits the BCV from its online volume and waits for the split to complete, creating a point-in-time image of the volume. Step COPY copies the BCV copy of data sets from volume PROD01 to new names on a new volume. After the copy is complete, step REEST re-synchronizes the BCV with the online volume. For more information, Working with FDRINSTANT for Dell EMC TimeFinder.
//SYSOUT DD SYSOUT=*
//SYSIN DD * SPLIT 1,01FA,WAIT
/*
//COPY EXEC PGM=FDRCOPY,REGION=0M,COND=(0,NE,SPLIT)
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//DISK1 DD DISP=OLD,DSN=FDR.USE.UNIT01FA, UNIT=SYSALLDA,VOL=SER=PROD01
//SYSIN DD *
COPY TYPE=DSF
SELECT DSN=LEDGER**,NEWI=LEDTST,NVOL=TEST*
/*
//REEST EXEC PGM=EMCTF
//SYSOUT DD SYSOUT=*
//SYSIN DD *
RE-ESTABLISH 1,01FA
/*
Instant copy of Hitachi Vantara ShadowImage example
Data sets to be copied are in an Hitachi Vantara system with the ShadowImage feature. The DASD volume at address 01FA has been permanently assigned to online non SMS-managed volume “PROD01” at address 01E4; a previous one-time ESTPAIR has been issued to establish that pairing. The step “PPRCOPY” splits the copy from its online volume, creating a point-in-time image of the volume. Step “COPY” copies data sets from the copy of volume PROD01. After the copy is complete, step “RESYNC” re-synchronizes the copy with the online volume. See Working-with-FDRINSTANT-for-Hitachi-ShadowImage.
//SYSPRINT DD SYSOUT=*
//DISK1 DD UNIT=SYSALLDA,VOL=SER=PROD01,DISP=OLD
//SYSIN DD *
PPRCOPY SUSPEND DDNAME(DISK1) PRI(X’0080’,30158,X’04’) - SEC(X’0080’,30158,X’1A’) LSS(X'01',X'01')
/*
//COPY EXEC PGM=FDRCOPY,REGION=0M,COND=(0,NE,PPRCOPY)
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//DISK1 DD DSN=FDR.USE.UNIT01FA.DISBAND,UNIT=SYSALLDA,
// VOL=SER=PROD01,DISP=OLD
//SYSIN DD *
COPY TYPE=DSF
SELECT DSN=LEDGER**,NEWI=LEDTST,NVOL=TEST*
/*
//RESYNC EXEC PGM=ICKDSF,COND=(0,NE,BACKUP)
//SYSPRINT DD SYSOUT=*
//DISK1 DD UNIT=SYSALLDA,VOL=SER=PROD01,DISP=OLD
//SYSIN DD *
PPRCOPY ESTPAIR DDNAME(DISK1) PRI(X’0080’,30158,X’04’) -
SEC(X’0080’,30158,X’1A’) LSS(X'01',X'01') MODE(RESYNC)
/*
Instant copy with FlashCopy example
The FlashCopy target volume at address 01FA has been permanently assigned to online volume “PROD01”. The step FCOPY starts a FlashCopy session from online volume PROD01 to offline target 01FA. VERIFYVOLSER=YES verifies that 01FA already contains volume serial number PROD01; you may need to omit this the first time that you FCOPY to that target. Step COPY copies data sets from the offline copy of volume PROD01. After the copy is complete, FDRCOPY terminates the FlashCopy session. See Working-with-FDRINSTANT-for-FlashCopy.
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//TAPE1 DD DUMMY
//SYSIN DD *
FCOPY TYPE=FDR,VERIFYVOLSER=YES MOUNT VOL=PROD01,FLASHUNIT=01FA
/*
//COPY EXEC PGM=FDRCOPY,REGION=0M,COND=(0,NE,FCOPY)
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//DISK1 DD UNIT=SYSALLDA,VOL=SER=PROD01,DISP=OLD
//SYSIN DD *
COPY TYPE=DSF,FCOPY=(USE,REL)
SELECT DSN=LEDGER**,NEWI=LEDTST,NVOL=TEST*
/*