Example 13: Making SHRLEVEL CONCURRENT copies


This job example makes a SHIRLEVEL CONCURRENT copy.

//ACPEX13  JOB (PACP),'EXAMPLE 13',CLASS=Q,MSGCLASS=X,NOTIFY=&SYSUID
//**********************************************************************
//* Create a SHRLEVEL CONCURRENT copy of the table spaces in database
//* ACPEXDB1. The image copy will be the same as a SHRLEVEL REFERENCE
//* copy, but updates are allowed 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.
//*  - MAXTASKS (2,2) to create 2 tasks for making copies.
//*  - Dynamic allocation with the OUTPUT command.
//*  - SHRLEVEL CONCURRENT to create consistent, SHRLEVEL REFERENCE
//*    quality copies while the updates are occurring.
//*  - GROUP YES to cause all of the copies to be made at a common,
//*    consistent point
//*  - RESETMOD NO to avoid the overhead of clearing the modified-page
//*    indicators in each spacemap. This is required when SHRLEVEL
//*    CONCURRENT is specified.
//*
//**********************************************************************
//BMCCOPY  EXEC PGM=ACPMAIN,REGION=0M,
//            PARM='DGA,ACPEX13,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 *

  OPTIONS MAXTASKS (2,2)

  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 ACPEXDB1.*
         COPYDDN(LOCALP)
         RECOVERYDDN(REMOTP)
       RESETMOD NO
       SHRLEVEL CONCURRENT REQUIRED XBMID XBMDB2
       GROUP YES
/*


 

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