Task 5: Restoring libraries to the system auxiliary storage pool

Before you restore libraries to the system auxiliary storage pool (ASP), decide which libraries to restore.

  1. You should restore only the libraries in your system ASP. Do not restore the libraries that are already on your system in user ASPs.
    If you are not sure which libraries are currently on your system, type DSPOBJD OBJ(*ALL) OBJTYPE(*LIB).
    Note: When you install the operating system, the system creates the QGPL library and the QUSRSYS library. You should still restore these libraries to restore the data from your saved copy.
  2. Plan your restore sequence.
    The system restores objects in the same library in the correct order. But if related objects are in different libraries, you must restore them in the correct order or defer the restore of dependent objects. For more information, see the Sequence for restoring related objects topic and the Deferring the restore of dependent objects topic.
  3. Choose the commands or menu options you will use.
    You can restore libraries by name or in a group, such as *NONSYS.

    If you restore libraries in a group, omit the libraries in your user ASPs.

  4. Type the restore commands or menu options that you have chosen.
    In the example shown in Figure 1, libraries were saved using SAVLIB(*ALLUSR). One way to restore them is to type the following command:
    
    RSTLIB SAVLIB(*ALLUSR) DEV(media-device-name)
           OMITLIB(ORDLIB TRANLIB $JRNLB $RCVRB)

If a media error occurs:

If you have an unrecoverable media error when you are restoring multiple libraries, see Recovering from an error while restoring libraries topic for more information.