Creating an image copy without accessing the space


You can create a new image copy of a table space or index at any time by running a RECOVER command with OUTCOPY ONLY.

The underlying space will not be accessed or affected in any way.

  • If you do not specify a log point (with TORBA or TOLOGPOINT), the log is used up to the point where the utility begins. The log information is combined with any copies or change accumulation files to create a new full copy.
  • If you do specify a log point (with TORBA or TOLOGPOINT), the log is used up to the target LRSN. The log information is combined with any copies or change accumulation files to create a new full copy.

Whether or not you select a TORBA or TOLOGPOINT, BMC AMI Recover registers the copy as SHRLEVEL CHANGE unless the log point is a point of consistency.

Example JCL to create the new image copy and use dynamic allocation for the output image copy is shown in the following figure.

//RECOVER EXEC PGM=AFRMAIN,REGION=0M,
// PARM='DBAN,AFRAQDN,NEW,MSGLEVEL(1)'
//STEPLIB  DD DISP=SHR,DSN=product.libraries
//         DD DISP=SHR,DSN=DB2.DSNEXIT
//         DD DISP=SHR,DSN=DB2.DSNLOAD
//AFRGDG   DD DSN=AFR.PROD.GDGDEF(GDGDEF01),DISP=SHR
//SYSIN    DD *
  OPTIONS OUTCOPY ASCODED INDEXLOG YES

  OUTPUT COPY  DSNAME AFR.IC.&DB.&SP(+1)
      UNIT SYSDA  CATLG YES  MODELDCB SYS1.MODEL  SPACE (10,10) CYL

  RECOVER  TABLESPACE AFRFIN.AFRACCT
               OUTCOPY ONLY REGISTER ALL  OUTCOPYDDN COPY
           TABLESPACE AFRFIN.AFRTRAN
               OUTCOPY ONLY REGISTER ALL  OUTCOPYDDN COPY
           TABLESPACE AFRFIN.AFRSUMM
               OUTCOPY ONLY REGISTER ALL  OUTCOPYDDN COPY
           TABLESPACE AFRFIN.AFRHIST
               OUTCOPY ONLY REGISTER ALL  OUTCOPYDDN COPY
           INDEX AFRFIN.AFRACCTI
               OUTCOPY ONLY REGISTER ALL  OUTCOPYDDN COPY
           INDEX AFRFIN.AFRTRANI
               OUTCOPY ONLY REGISTER ALL  OUTCOPYDDN COPY
           INDEX AFRFIN.AFRSUMMI
               OUTCOPY ONLY REGISTER ALL  OUTCOPYDDN COPY
           INDEX AFRFIN.AFRHISTI
               OUTCOPY ONLY REGISTER ALL  OUTCOPYDDN COPY

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*