Building restore jobs - data and logs
Use these steps to build a restore job for data and logs.
Procedure
-
From the System Level Backup Display panel, specify
S in the Cmd line next to the backup that will be used
for the restore.
Figure 1. Restore Options panel (BSY$RESD) Restore Options BSY$RESD Restore Only Data N (Yes/No) Select a Recovery Point N (Yes/No) Recover to Timestamp 09301113552740000 Update Recovery Options Y (Yes/No) Select whether to Restore Data and Logs or Data only. If restoring Data and Logs you will not be able to select a Timestamp Recovery Point.
-
On the Restore Options panel, specify information in the following
fields:
- Restore Only Data
- To restore data and logs, specify N.
- Select a Recovery Point
- Leave this field set to N; you cannot select a recovery point when restoring data and logs.
- Recover to Timestamp
- This field defaults to the recovery timestamp associated with the backup. You cannot change this field.
- Update Recovery Options
- To update recovery options, specify Y.
- When you finish specifying information on this panel, press
Enter.
Figure 2. Build Restore Job panel (BSY$BLDR) Build Restore Job BSY$BLDR Edit Generated Job Y (Yes/No) Build job in Data set PDMONA.BSY.JCLLIB Member RSYSMEM Restore System Member Job Cards: ==> //RJOBCRD JOB PDMONA,CLASS=A,NOTIFY=&SYSUID ==> //* ==> //* ==> //*
-
The Build Restore Job panel is displayed. One JCL member is generated when
restoring data and logs. The following figure is a sample generated restore job:
****** ***************************** Top of Data ****************************** 000001 //RJOBCRD JOB TWUSR,CLASS=A,NOTIFY=&SYSUID 000002 //* 000003 //* 000004 //* 000005 //* 000006 //** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 000007 //* * 000008 //* Profile: TWUSR.BCV BACKUP * 000009 //* Job: 01 of 01 * 000010 //* Desc: * 000011 //* User: TWUSR * 000012 //* Date: Thursday July 05, 2021 * 000013 //* Time: 19:16:15.75 * 000014 //* * 000015 //** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 000016 //* * 000017 //** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 000018 //* * 000019 //* Step: IMSSTOP * 000018 //* * 000019 //* Step: IMSSTOP * 000020 //* * 000021 //* Desc: This step will STOP IMS subsystem B71D * 000022 //* * 000023 //** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 000024 //* * 000025 //IMSSTOP EXEC PGM=BSY#SIMS,COND=(4,LT),PARM=(B71D,STOP) 000026 //STEPLIB DD DISP=SHR,DSN=BSY.PRD0220.LOADLIB 000027 // DD DISP=SHR,DSN=DSN.B71D.SDSNEXIT 000028 // DD DISP=SHR,DSN=DSN.V710.SDSNLOAD 000029 //IMSPARMS DD DISP=SHR,DSN=BSY.WRK0220.IMS.CONTROL 000030 //SYSPRINT DD SYSOUT=* 000031 //* 000032 //** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 000033 //* * 000034 //* Step: BSYREST * 000035 //* * 000036 //* Desc: This step will invoke the System Restore job. * 000037 //* * 000038 //* When this job is complete. IMS can be restarted. If * 000039 //* you did not restore the IMS logs, you will need to * 000040 //* respond Yes to the WTOR: * 000041 //* XXXX CONDITIONAL RESTART RECORD INDICATES TRUNCATION * 000042 //* AT RBA XXXXXXXXXXXX. REPLY Y OR N * 000043 //* * 000044 //** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 000045 //* * 000046 //BSYREST EXEC PGM=BSY@MAIN,REGION=006M,COND=(4,LT) 000047 //* 000048 //STEPLIB DD DISP=SHR,DSN=BSY.PRD0220.LOADLIB 000049 // DD DISP=SHR,DSN=VENDOR.EMC.SFLS5602.LINKLIB 000050 // DD DISP=SHR,DSN=VENDOR.EMC.STFX540.LINKLIB 000051 // DD DISP=SHR,DSN=VENDOR.EMC.STFU540.LINKLIB 000052 // DD DISP=SHR,DSN=VENDOR.FDR5456.LOAD 000053 //IMSPARMS DD DISP=SHR,DSN=BSY.WRK0220.IMS.CONTROL 000054 //BSYBPROF DD DISP=SHR,DSN=BSY.WRK0220.BSY.PROFILES 000055 //BSYBOFFL DD DISP=SHR,DSN=BSY.WRK0220.BSY.OFFOPTS 000056 //BSYBPMAP DD DISP=SHR,DSN=BSY.WRK0220.BSY.PROFILE.MAPS 000057 //BSYBPCAT DD DISP=SHR,DSN=BSY.WRK0220.BSY.PROFILE.CATS 000058 //BSYSBACK DD DISP=SHR,DSN=BSY.WRK0220.BSY.SYSBACK 000059 //BSYSBOBJ DD DISP=SHR,DSN=BSY.WRK0220.BSY.SYSBACK.OBJS 000060 //BSYSBVOL DD DISP=SHR,DSN=BSY.WRK0220.BSY.SYSBACK.VOLS 000061 //BSYSBSSD DD DISP=SHR,DSN=BSY.WRK0220.BSY.SYSBACK.SSIDS 000062 //BSYBREPT DD DISP=SHR,DSN=BSY.WRK0220.BSY.BREPORT 000063 //BSY#REPT DD SYSOUT=* 000064 //SYSOUT DD SYSOUT=* 000065 //BSYOUT DD SYSOUT=* 000066 //BSYSNAPO DD SYSOUT=* 000067 //BSY#PARM DD DSN=BSY.PRD0220.SAMPLIB(BSY#PARM),DISP=SHR 000068 //BSYIN DD * 000069 RESTORE TWUSR."BCV BACKUP" 000070 GENERATION 01 000071 DATE 06/29/2021 000072 TIME 16:52:32 000073 RESTORE-LOGS 000074 /* 000075 //* 000076 //** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 000077 //* * 000078 //* Step: IMSSTART * 000079 //* * 000080 //* Desc: This step will START IMS subsystem B71D * 000081 //* * 000082 //** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 000083 //* * 000084 //IMSSTART EXEC PGM=BSY#SIMS,COND=(4,LT),PARM=(B71D,START) 000085 //STEPLIB DD DISP=SHR,DSN=BSY.PRD0220.LOADLIB 000086 // DD DISP=SHR,DSN=DSN.B71D.SDSNEXIT 000087 // DD DISP=SHR,DSN=DSN.V710.SDSNLOAD 000088 //IMSPARMS DD DISP=SHR,DSN=BSY.WRK0220.IMS.CONTROL 000089 //SYSPRINT DD SYSOUT=* 000090 //* ****** **************************** Bottom of Data ****************************