Methods to save Q libraries that contain user 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, you must end the QSNADS subsystem before saving the QUSRSYS library.

If you have the iSeries™ Integration for Windows® Server you must vary off the network server descriptions before saving the QUSRSYS library. This allows the server to obtain the necessary locks on the server 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
Important: For procedures where the server does not require a restricted state, you must ensure that the server can get the locks necessary to save the information. You should put your server 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 server in a restricted state. If you choose the prompting option, you can cancel the display that puts your server 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 server.

Related concepts
Save your server while it is active
Related reference
Save libraries with the SAVLIB command