Special values for the SAVLIB command

The Save Library (SAVLIB) command enables you to use the special values *NONSYS, *ALLUSR, and *IBM to specify groups of libraries.

The system saves libraries that begin with 'Q' as part of *NONSYS and *IBM. Other libraries are saved as part of *NONSYS and *ALLUSR. This table shows which IBM-supplied libraries the system saves for each special value.

Table 1. Comparison of special values for SAVLIB command: LIB parameter. The system saves all of the libraries that are marked with an X.
Library Name *NONSYS *IBM *ALLUSR
  Both user and IBM-supplied libraries All IBM-supplied libraries that do not contain user data All user libraries and IBM® supplied libraries that contain user data
QDOCxxxx1      
QDSNX X   X
QGPL7 X   X
QGPL38 X   X
QMGTC X   X
QMGTC2 X   X
QMPGDATA X   X
QMQMDATA X   X
QMQMPROC X   X
QPFRDATA X   X
QRCL X   X
QRCLxxxxx6 X   X
QRCYxxxxx6      
QRECOVERY3      
QRPLOBJ3      
QRPLxxxxx6      
QSPL3      
QSPLxxxx1,3      
QSRV3      
QSRVAGT X   X
QSYS2      
QSYSxxxxx6      
QSYS27 X   X
QSYS2xxxxx6, 7 X   X
QS36F X   X
QTEMP3      
QUSER38 X   X
QUSRADSM X   X
QUSRBRM X   X

QUSRDIRCF

X   X
QUSRDIRCL X   X
QUSRDIRDB X   X
QUSRIJS X   X
QUSRINFSKR X   X
QUSRNOTES X   X
QUSROND X   X
QUSRPYMSVR X   X
QUSRPOSGS X   X
QUSRPOSSA X   X
QUSRRDARS X   X
QUSRSYS7 X   X
QUSRVI X   X
QUSRVxRxMx4 X   X
Qxxxxxx5 X X  
#CGULIB X X  
#COBLIB X X  
#DFULIB X X  
#DSULIB X X  
#LIBRARY X   X
#RPGLIB X X  
#SDALIB X X  
#SEULIB X X  
1
Where xxxx is a value from 0002 to 0032, corresponding to an auxiliary storage pool (ASP).
2
Use the SAVSYS command to save information in the QSYS library.
3
These libraries contain temporary information. They are not saved or restored.
4
A different library name, format QUSRVxRxMx, might have been created by the user for each previous release supported by IBM. This library contains user commands to be compiled in a CL program for a previous release. For the QUSRVxRxMx user library, the VxRxMx is the version, release, and modification level of a previous release that IBM continues to support.
5
Qxxxxxx refers to any other library that starts with the letter Q. These libraries are intended to contain IBM-supplied objects. They are not saved when you specify *ALLUSR.
6
Where xxxxx is a value from 00033 to 00255, corresponding to an independent auxiliary storage pool (ASP).
7
The SAVLIB LIB(*NONSYS), SAVLIB LIB(*ALLUSR), and SAVCHGOBJ LIB(*ALLUSR) functions save libraries QSYS2, QGPL, QUSRSYS, and QSYS2xxxxx libraries first on the media if they are located on the ASPs specified by the ASPDEV parameter. The other libraries follow in alphabetical order by ASP device name. Libraries on independent ASPs are saved before libraries on the system and basic user ASPs. The IBM libraries are restored first and contain the prerequisite objects necessary for other libraries that follow in the restore process.