Restoring data sets for TMS (CA-1)
To restore critical data sets in a TMS environment, run two IDCAMS jobs to re-catalog the critical data sets and run two TMS utilities after recovering the TMS database.
Procedure
- Run the hlq.CNTL(TMSUPVOL) job to rename the disaster recovery data sets on the backup tapes to their original data set names in the TMS master file.
- Run the hlq.CNTL(TMSUPDSN) job to update the records for multi-file tape volumes in the TMS master file.
- Run the hlq.CNTL(TMSUPC02) job to execute IDCAMS to uncatalog the original tape files.
- Run the hlq.CNTL(TMSUPC01) job to execute IDCAMS to associate the critical tape files with their backup copies.
Results
The control cards required to perform these restores reside in the RESTJCL.BRNVCPY library that is generated by the job RESTJCL. The generated members are:
- DEFINES
- The control statements that are used to redefine the Critical Files to refer to the backup copies. Member TMSUPC01 in the hlq.CNTL library invokes this input stream.
- DELETES
- The control statements that are used to delete the original critical tapes.
Attention: Do not execute these statements in a production environment as real critical files would be UNCATALOGED.Member TMSUPC02 in the hlq.CNTL library invokes this input stream.
- DSNBUPDT
- The TMS control statements used to update the tape backup records for multi-file tape volumes to reflect the original data set name. Member TMSUPDSN in the hlq.CNTL library invokes this input stream.
- VOLUPDT
- The TMS control statements used to update the tape backup volume records to reflect the original data set name. Member TMSUPVOL in the hlq.CNTL library invokes this input stream.
- COPY
- The control statements used to recover tape data sets with data set names shorter than the standard 17-character length. Member YTAPECPY in the hlq.USERMAC library invokes this input stream.