The CASFRSTR sample JCL restores The SCDS whenever needed.
During the restore process, the SMFD program takes the information contained in the Backup data set, previously created by SMFD, to rebuild the SCDS.
When the SCDS is restored, the SMFD program resets all pointers to active history tapes. This prevents the possibility of a subsequent dump overlaying a history file produced after a backup from which a restore was performed. For this reason, the next SMF dump for each configuration starts as file one on a new volume. (If this procedure releases a tape with only one or two files on it, delete the index entries and then use the CASFDMP4 sample JCL to redump them to a new history tape and make the old tape available for reuse.)
If index entries are missing in the restored file, you can recreate them after CASFRSTR has run. (See Chapter 4 of the User Guide for a complete description of the ADDX command.)
Below is a sample of the JCL needed to restore the SCDS:
//CASFRSTR JOB (ACCTINFO),PGMR,CLASS=A,MSGCLASS=A //* //* THIS SAMPLE JCL CLEARS THE CURRENT CA SMF Director //* CONTROL DATA SET (SCDS) AND RESTORES ITS CONTENTS //* FROM A BACKUP DATA SET. //* //* NOTE: EDIT AS PER INSTALLATION STANDARDS //* //STEP1 EXEC PGM=IEBGENER,REGION=248K //SYSPRINT DD SYSOUT=* //SYSUT1 DD DUMMY,DCB=CAI.SMFDIR.SCDS //SYSUT2 DD DISP=SHR,DSN=CAI.SMFDIR.SCDS //SYSIN DD DUMMY //* //STEP2 EXEC PGM=SMFD,REGION=4096K,PARM=RESTORE //STEPLIB DD DISP=SHR,DSN=CASFLOAD //SYSPRINT DD SYSOUT=* //SYSXDIAG DD SYSOUT=* //SYSOUT DD SYSOUT=* //SCDS DD DISP=SHR,DSN=CAI.SMFDIR.SCDS //SCDSBACK DD DSN=CAI.SMFDIR.SCDSBKUP(),DISP=OLD //SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(5,5),RLSE) //SORTWK02 DD UNIT=SYSDA,SPACE=(CYL,(5,5),RLSE) //SORTWK03 DD UNIT=SYSDA,SPACE=(CYL,(5,5),RLSE) /* //
When you restore to an existing SCDS file, the operator receives a message indicating that a restore has been requested. You should advise the operator to respond either:
Important! CASFRSTR abends may not be recognized because normal abend notification may not be given. Unless job output is examined, problems would not be apparent. To resolve this problem, change the EXEC PARM in CASFRSTR to PARM='NOSTAE,RESTORE'.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |