Restoring packages
You can restore one or more packages that were freed by the collection clean up function.
About this task
The collection clean up function runs when you specify the CL line command on the Collections (ADB21L) panel, as described in Deleting obsolete packages.
Procedure
To restore packages:
- Specify the CLREST command.
- On the Restore Packages (ADBPBMRE)
panel, specify the
requested information to restore the packages, and press Enter:
ADBPBMRE DC1A Restore Packages 15:40 Command ===> DBRM backups DSN . . . . . . . DBRM Prefix for regenerated DBRMs . Delete old regenerated DBRMs . N (N,Y) Restore packages . . . . . . . S (O - all with original DBRM, R - all with regenerated DBRM, S - selected packages)
Tip: For more information about the fields on this panel, press PF1 to open the panel help.After you press Enter, one of the following screens is displayed:- If you specified O or R in the Restore packages field, the generated JCL to restore the packages is displayed. This JCL contains the appropriate BIND statements for the requested packages.
- If you specified S in the Restore packages field,
the Packages To Restore
(ADBPBMRS) panel is
displayed:
ADBPBMRS DC1A Packages To Restore Row 1 to 12 of 74 Command ===> Commands: RO RR Line commands: RO - Restore with original DBRM RR - Restore with regenerated DBRM BO - Browse original DBRM BR - Browse regenerated DBRM SBS - Show BIND statement ? - Show all line commands Sel Collection Name Version Contoken Bind Timestamp * * * * * --- -------------> -------- -------------> ---------------- ------------------> KAWCOL ADBASW V12.1.0.000000 1A25E7770962B398 2021-08-24-14.27.03 KAWCOL ADBBMA3 V12.1.0.000000 1AF0D67519427111 2021-08-24-14.27.05 KAWCOL ADBBMCL V12.1.0.000000 1B38B5771CEADCD0 2021-08-24-14.27.05 KAWCOL ADBBMRG V12.1.0.000000 1AFC21E803899858 2021-08-24-14.27.05 KAWCOL ADBCCM PH22548 1AF49B0E143ED438 2021-08-24-14.27.04 KAWCOL ADBCDCH V12.1.0.000000 1A25E7510F052F3C 2021-08-24-14.27.04 KAWCOL ADBCDTW V12.1.0.000000 1A25E7480AC68ADC 2021-08-24-14.27.04 KAWCOL ADBCEST V12.1.0.000000 1A25E75D14D516DE 2021-08-24-14.27.04 KAWCOL ADBCHST V12.1.0.000000 1AB725361AB409A5 2021-08-24-14.27.04 KAWCOL ADBCIMV V12.1.0.000000 1A47F2111A7031C3 2021-08-24-14.27.04 KAWCOL ADBCMPC V12.1.0.000000 1A25E74D1F2BEB5A 2021-08-24-14.27.04 KAWCOL ADBCMPDB V12.1.0.000000 1A25E76A065851C6 2021-08-24-14.27.04
- If the Packages To Restore
(ADBPBMRS) panel is displayed,
use the following commands to select the packages that you want to bind:
- RO
- Restore packages by using the original DBRM.
If you specify the RO line command, the appropriate BIND statement is executed for the selected package. (Depending on your settings, an execution prompt might be displayed first.)
If you specify the RO command, JCL is generated to restore all packages that are currently listed on the panel. To limit the scope of this command, you can first filter the list of packages displayed on the panel.
- RR
- Restore packages by using the regenerated DBRM.
If you specify the RR line command, JCL is generated to restore the package. This JCL contains the appropriate BIND statement for the selected package.
If you specify the RR command, JCL is generated to restore all packages that are currently listed on the panel. To limit the scope of this command, you can first filter the list of packages displayed on the panel.
- Submit any generated JCL to bind the packages.