Methods for saving Q libraries that contain user data

 

This information describes common save methods for Q libraries that contain data.

Table 1. Q libraries that contain user data information
Item description When changes occur Contains user data or changes? IBM-supplied data?

Q libraries that contain user data include QGPL, QUSRSYS, QDSNX, and others.

Special values for the SAVLIB command includes a complete list of Q libraries that contain user data.

These libraries change regularly. Yes Yes

To save the system directory files, end the QSNADS subsystem before saving the QUSRSYS library.

If you have the iSeries™ Integration for Windows® Server vary off the network server descriptions before saving the QUSRSYS library. This allows the server to obtain the necessary locks on the system storage spaces in the library.

Common save method for Q libraries that contain user data Requires restricted state?
SAVLIB *NONSYS Yes
SAVLIB *ALLUSR No1
SAVLIB library-name No1
SAVCHGOBJ No1
GO SAVE command, menu option 21 Yes
GO SAVE command, menu option 23 No1, 2

1

For procedures where the system does not require a restricted state, ensure that the system can get the locks necessary to save the information. You should put your system in a restricted state whenever you save multiple libraries, documents, or directories, unless you use the save-while-active function.

2

When you use option 23 from the GO SAVE command menu, the default is to place your system in a restricted state. If you choose the prompting option, you can cancel the display that puts your system in a restricted state.

Save libraries with the SAVLIB command explains how to save one or more libraries. This information also includes special SAVLIB parameters and how to select libraries on your system.

 

Parent topic:

Methods for saving user data

Related concepts
Saving your system while it is active