Chapter 26. Global Mirror examples 363
Example 26-29 Remove FlashCopy relationships
//* ------------------ TSO ----------------- CLEANUP (4) --------- ***
//* Remove FlashCopy relationship from B -> C ***
//* -------------------------------------------------------------- ***
//FCWDRW EXEC PGM=IKJEFT01
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD DDNAME=SYSIN
FCQUERY DEVN (X'3C00')
FCWITHDR SDEVN(X'3C00') TDEVN(X'3E00')
FCQUERY DEVN (X'3C00')
FCQUERY DEVN (X'3D00')
FCWITHDR SDEVN(X'3D00') TDEVN(X'3F00')
FCQUERY DEVN (X'3D00')
FCQUERY DEVN (X'3D01')
FCWITHDR SDEVN(X'3D01') TDEVN(X'3F01')
FCQUERY DEVN (X'3D01')
You may verify, with a last FlashCopy query, that the FlashCopy relationships are removed.
Example 26-30 illustrates this.
Example 26-30 FCQUERY commands and their output
READY
FCQUERY DEVN (X'3C00')
FCQUERY Formatted -2
DEVN SSID LSS CCA CU SERIAL ACT MAX XC PC CC RV SEQNUM
3C00 3C00 0C 00 2107 000000073081 1 50099 N S N N 429334DE
FCQUERY COMMAND COMPLETED FOR DEVICE 3C00. COMPLETION CODE: 00
READY
FCWITHDR SDEVN(X'3C00') TDEVN(X'3E00')
FCWITHDR COMMAND COMPLETED FOR DEVICE 3C00. COMPLETION CODE: 00
READY
FCQUERY DEVN (X'3C00')
FCQUERY Formatted -2
DEVN SSID LSS CCA CU SERIAL ACT MAX XC PC CC RV SEQNUM
3C00 3C00 0C 00 2107 000000073081 0 50099 N S N N 00000000
FCQUERY COMMAND COMPLETED FOR DEVICE 3C00. COMPLETION CODE: 00
READY
The ACT column with the number 1 indicates an active FlashCopy relationship. The 0 (zero) in
the FlashCopy query, after the FlashCopy withdraw command, indicates that the FlashCopy
relationship is removed.
26.5.5 Delete Global Copy volume pairs
Remove all Global Copy volume pair relationships. Example 26-31 on page 364 shows the
TSO commands that are used for this.