Chapter 3. Using MS/VCR for cloning an online DB2 subsystem 43
DUMPCONDITIONING PURGE DEBUG(FRMSG(DETAILED)
COPY FULL INDYNAM(DB2A02) OUTDYNAM(DB2B02) ALLDATA(*) -
ALLEXCP ADMINISTRATOR FASTREP(REQ) -
DUMPCONDITIONING PURGE DEBUG(FRMSG(DETAILED)
COPY FULL INDYNAM(DB2A03) OUTDYNAM(DB2B03) ALLDATA(*) -
ALLEXCP ADMINISTRATOR FASTREP(REQ) -
DUMPCONDITIONING PURGE DEBUG(FRMSG(DETAILED)
COPY FULL INDYNAM(DB2A04) OUTDYNAM(DB2B04) ALLDATA(*) -
ALLEXCP ADMINISTRATOR FASTREP(REQ) -
DUMPCONDITIONING PURGE DEBUG(FRMSG(DETAILED)
VCR03001I 09.55.41 COPY COMPLETED; RETURN CODE=0
VCR04001I 09.55.42 BCS BACKUP STARTED - PROGRAM REV=16
VCR04003I DDNAME=SYS00012 ALLOCATED FOR DSN=VCR.WRK.UCATBKUP.BKP00001
VCR04003I DDNAME=SYS00013 ALLOCATED FOR DSN=USERCAT.DB2A
VCR04033I IDCAMS VERIFY FOR BCS WAS SUCCESSFUL
VCR04034I IDCAMS EXAMINE INDEXTEST FOR BCS WAS SUCCESSFUL
VCR04035I NUMBER OF RECORDS READ FROM BCS: 1990
VCR04036I NUMBER OF RECORDS WRITTEN TO BACKUP: 1990
VCR04001I 09.55.43 BCS BACKUP COMPLETED; RETURN CODE=0
3.3.3 Step 3 - Execute MS/VCR RENAME SIMULATE
RENAME SIMULATE is an optional MS/VCR command that performs masking
comparisons to both catalog and volume records to detect an incomplete rename
of source volume data sets. The RENAME command also verifies that all data
sets included on the source volumes match a RENAME mask.
Example 3-5 illustrates a sample job for executing the RENAME SIMULATE
command against the cloned DB2A subsystem target volumes. When the
previous COPY command was run, the volumes found in the storage group were
recorded in the file specified on the JOURNAL DD statement, and the RENAME
SIMULATE command reads the journal file to identify the volumes required for
the rename process. The data set rename masks indicate that any data sets
named DB2APROD and DB2CPROD will be renamed to DB2BPROD and
DB2DPROD, respectively. Any target volume data sets that do not match these
rename masks will be kept, and the step will complete with a return code of zero.
Example 3-5 Sample RENAME SIMULATE job
//RENAMSIM JOB ,'VCR RENAME SIMULATE',CLASS=A,MSGCLASS=X
//S0 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEL VCR.WRK.BCSRECS
DEL VCR.WRK.VOLBKUP
SET MAXCC=0
44 Mainstar MS/VCR: The Tool for Efficient Device Cloning
//S1 EXEC PGM=VCR00010,REGION=8M
//STEPLIB DD DSN=VCR.LOAD,DISP=SHR
//VCRINI DD DSN=VCR.PARMLIB(VCRINI),DISP=SHR
//VCRPRINT DD SYSOUT=*
//SORTMSG DD SYSOUT=*
//DRSTATS DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//JOURNAL DD DSN=VCR.JRNL,DISP=SHR
//BCSRECS DD DSN=VCR.WRK.BCSRECS,UNIT=SYSDA,DISP=(,CATLG),
// SPACE=(TRK,(5,5))
//VOLBKUP DD DSN=VCR.WRK.VOLBKUP,UNIT=SYSDA,DISP=(,CATLG),
// SPACE=(TRK,(10,10))
//VCRIN DD *
RENAME SIMULATE -
SAFE -
VOLBKUP-DDN(VOLBKUP) -
MAX-TASKS(5) -
NOTRENAMED(DELETE,RC(0)) -
RECATALOG(N) -
RENAME-MASKS(DB2APROD.** DB2BPROD.** -
DB2CPROD.** DB2DPROD.**) -
JOURNAL-DDN(JOURNAL)
//*
SYSOUT from RENAME SIMULATE
Example 3-6 shows the output of the RENAME SIMULATE job execution.
Example 3-6 RENAME SIMULATE SYSOUT
IDCAMS SYSTEM SERVICESTIME: 10:00:03 02/22/05 PAGE 1
DEL VCR.WRK.BCSRECS
IDC0550I ENTRY (A) VCR.WRK.BCSRECS DELETED
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0
DEL VCR.WRK.VOLBKUP
IDC3012I ENTRY VCR.WRK.VOLBKUP NOT FOUND
IDC3009I ** VSAM CATALOG RETURN CODE IS 8 - REASON CODE IS IGG0CLEG-42
IDC0551I ** ENTRY VCR.WRK.VOLBKUP NOT DELETED
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8
SET MAXCC=0
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0
VOLUME CONFLICT RENAME (C) MAINSTAR SOFTWARE CORPORATION, BELLEVUE, WA, USA 22 FEB 2005
10.00.04 V1.07
VCRINI INFORMATION MODULE INFORMATION OPERATING SYSTEM
REL: V1.07 REL: V1.07 z/OS 1.5
Chapter 3. Using MS/VCR for cloning an online DB2 subsystem 45
DATE: 04 NOV 2004
MAINT: 04 NOV 2004
MSC00019I Authorization - completed successfully
RENAME SIMULATE -
SAFE -
VOLBKUP-DDN(VOLBKUP) -
MAX-TASKS(5) -
NOTRENAMED(DELETE,RC(0)) -
RECATALOG(N) -
RENAME-MASKS(DB2APROD.** DB2BPROD.** -
DB2CPROD.** DB2DPROD.**) -
JOURNAL-DDN(JOURNAL)
VCR10001I 10.00.04 RENAME PROCESS STARTED - PROGRAM REV=28
VCR10085I DSNS FOR KEYWORD: RENAME-MASKS
PROCESSING SEQUENCE
DB2APROD.** DB2BPROD.**
1
DB2CPROD.** DB2DPROD.**
2
VCR10086I VALIDATING KEYWORD: NOTRENAMED
VCR10048I OPTIONS IN EFFECT FOR THIS EXECUTION:
SMS
DATACLAS: USE SOURCE
MGMTCLAS: USE SOURCE
STORCLAS: USE SOURCE
CONCURRENT_EXECUTIONS: Y
GDG-ALL-MIGRATED: SKIP
GDG-EMPTY: SKIP
GDG-MIGRATED: RETAIN,RC(4)
GDG-TAPE: RETAIN,RC(4)
ISSUE-VCLOSE: YES,LOCAL
ISSUE_VCR14141I: ALL
MAX-TASKS: 5
MISSINGUCAT: KEEP,RC(4)
NOTRENAMED: DELETE,RC(0)
RECATALOG: N
RENAME-ERROR: ABORT
RUN MODE: SAFE
SIMULATION: Y
TEMPDSN: KEEP,RC(4)
VOLBKUP-DDN: VOLBKUP
VTOCIX_REBUILDER: MSC
NUMBER OF CATALOG PAIRS: 1
NUMBER OF RENAME MASK PAIRS: 2

Get Mainstar MS/VCR: The Tool for Efficient Device Cloning now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.