Chapter 7. Case studies 143
Enter command for VVDS fixer
Enter BCS record name to be deleted.
C type BCS record DELETED. Name=YCJRES1.CRPLUS.TESTE.E000024
T type BCS record DELETED. Name=YCJRES1.CRPLUS.TESTE.E000024.DATA
A BCS record can also be deleted with the Catalog RecoveryPlus ZAP BCS
DELETE command, by specifying the key of the record to be deleted (a cluster
sphere name), and the BCS name from which the record is to be deleted.
Only
the record with that key is deleted.
Example 7-24 CR+ ZAP BCS DELETE to delete a BCS record
//YCJRES1Z JOB MSGCLASS=X,NOTIFY=&SYSUID,RESTART=*
//S1 EXEC PGM=CAT00010
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
ZAP BCS(UCAT.CRPLUS1) -
DELETE(KEY(YCJRES1.CRPLUS.TESTE.E000025))
/*
CAT01001I Catalog RecoveryPlus MAINSTAR SOFTWARE CORPORATION 02 OCT 2001 PAGE:1
CAT08213I RECORD DELETED
CAT08000I ZAP FUNCTION COMPLETE. RETURN CODE 0
CAT01009I Catalog RecoveryPlus EXECUTION COMPLETE. HIGHEST RETURN CODE WAS 0
7.9 Case study #9: Preventive maintenance
This case study demonstrates using the Catalog RecoveryPlus DIAGNOSE
command in a way that you can establish true ICF catalog preventive
maintenance. It uses two commands that can run on a regularly-scheduled
basis, with fixes automatically created for problems encountered.
The commands are DIAGNOSE BCS-VVDS and DIAGNOSE VVDS-BCS, both
specified with masking values for the BCSs and VVDSs and the ALLRELATED
keyword. These two features permit these commands to be run over and over
again, regardless of changes made to the ICF catalog and disk environment.
Example 7-25 illustrates a CR+ DIAGNOSE BCS-VVDS command. This
command compares all records in the selected BCSs, to determine if they each
have corresponding VVR/NVR records in the appropriate VVDS. In this case, the
COMPAREBCS mask selects all BCSs that match UCAT.CRPLUS*. The
144 ICF Catalog Backup and Recovery: A Practical Guide
TOVVDS mask of SBOX** selects all volsers that begin with the value SBOX. For
all errors identified, an IDCAMS fix command is created and stored in the flat
file identified by the FIXDATASET keyword (for this run, there were no errors, so
no fixes were stored).
The command requires only two small changes to convert it into one that
diagnoses the entire environment:
򐂰 COMPAREBCS(**)
򐂰 ALLRELATED
(instead of the current TOVVDS keyword)
With these changes, this DIAGNOSE command selects every BCS in your
environment and compares outward to every related VVDS.
How much does this cost? For Example 7-25, the total run time was less than
two elapsed minutes. This is certainly on the low side, because it was the ITSO
test environment, with fairly small BCSs and not a high number of data sets on
each volume.
Example 7-25 CR+ DIAGNOSE BCS-VVDS to search for errors
17.56.28 JOB11471 IEF403I YCJRES1B - STARTED - ASID=001B.
17.58.17 JOB11471 IEF404I YCJRES1B - ENDED - ASID=001B.
//YCJRES1B JOB MSGCLASS=X,NOTIFY=YCJRES1,RESTART=*
//S1 EXEC PGM=CAT00010
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
DIAGNOSE BCS-VVDS -
COMPAREBCS(UCAT.CRPLUS*) -
TOVVDS(SBOX**) -
JOURNAL(YCJRES1.CRPLUS.DIAGNOSE.JOURNAL) -
FIXDATASET(YCJRES1.CRPLUS.DIAGNOSE.FIXFILE)
/*
CAT01001I Catalog RecoveryPlus MAINSTAR SOFTWARE CORPORATION 04 OCT 2001 PAGE:1
CAT11030I DSNS/MASKS FOR KEYWORD: COMPAREBCS
UCAT.CRPLUS1
UCAT.CRPLUS2
UCAT.CRPLUS3
UCAT.CRPLUS4
CAT11033I VOLSERS OR MASKS FOR KEYWORD: TOVVDS
SBOX**
CAT11031I THE FOLLOWING BCS(S) WILL BE DIAGNOSED:
UCAT.CRPLUS1
UCAT.CRPLUS2
UCAT.CRPLUS3
UCAT.CRPLUS4

Get ICF Catalog Backup and Recovery: A Practical Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.