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, you must end the QSNADS subsystem before saving the QUSRSYS library. You might also need to end the QSYSWRK, QSERVER, and ENDTCPSVR(*MGTC *DIRSRV) subsystems to save the QAO* files.

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 system does not require a restricted state, you must 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.

Saving 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.