Example 3: Copying objects in a BMC AMI Recovery Manager object sets


This job example copies objects in a BMC AMI Recovery Manager object sets.

//ACPEX03  JOB (PACP),'EXAMPLE 3',CLASS=Q,MSGCLASS=X,NOTIFY=&SYSUID
//**********************************************************************
//* Make a SHRLEVEL REFERENCE full copy of all spaces in Recovery
//* Manager group ACP.ACPEXGRP. BMCSTATS YES is used to collect
//* DASD Manager statistics while the copy is running.
//*
//* This job will create a local-site primary (LP) copy on DASD,
//* and a recovery-site primary (RP) copy that is stacked on tape.
//*
//* This example demonstrates the following features of COPY PLUS:
//*
//*  - Restart parm NEW/RESTART to allow the job to be restarted by
//*    re-submitting the job without changes.
//*  - Dynamic allocation with the OUTPUT command
//*  - OBJECTSET to specify the table space list
//*  - RESETMOD NO to avoid the overhead of clearing the modified-page
//*    indicators in each spacemap.
//*  - GROUP YES to cause all of the copies to be made at a common,
//*    consistent point
//*  - RUNSTATS YES BMCSTATS YES to collect RUNSTATS statistics and
//*    DASD Manager statistics during the copy
//*
//**********************************************************************
//BMCCOPY  EXEC PGM=ACPMAIN,REGION=0M,
//            PARM='DGA,ACPEX03,NEW/RESTART,MSGLEVEL(1)'
//STEPLIB  DD DISP=SHR,DSN=product.libraries
//         DD DISP=SHR,DSN=DB2.DSNEXIT
//         DD DISP=SHR,DSN=DB2.DSNLOAD
//ACPERROR DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN    DD *

  OUTPUT LOCALP UNIT SYSDA
       DSNAME ACP.LP.&DB.&TS.D&DATE.T&TIME

  OUTPUT REMOTP UNIT CARTVTS STACK YES
       DSNAME ACP.RP.&DB.&TS.D&DATE.T&TIME

  COPY TABLESPACE OBJECTSET ACP.ACPEXGRP
         COPYDDN(LOCALP)
         RECOVERYDDN(REMOTP)
       FULL YES
       RESETMOD NO
       SHRLEVEL REFERENCE
       GROUP YES
       RUNSTATS YES BMCSTATS YES
/*


 

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