Command reference / library
CHGLIBL
Change Library List
Changes the user portion of the library list for the current thread to the libraries specified. It does not affect the system portion of the library list or the library list of any other thread.
Allowed environments: *ALL.
Positional parameters: 2.
Restrictions
- You must have use (*USE) authority for all the specified libraries before the library list is changed.
- If you are not authorized to one or more of the libraries, the library list is not changed.
Parameters
LIBL
Libraries for current job
Specifies the libraries placed in the user portion of the library list for the current thread, as a single value or a list of up to 250 names, searched in the order given.
Suggested / special values:
*SAME, *NONE
*SAME- The libraries in the user portion of the library list for the current thread are not changed.
*NONE- No libraries are in the user portion of the library list for the current thread.
CURLIB
Current library
Specifies the library that replaces the current library entry in the library list for the current thread.
Suggested / special values:
*SAME, *CRTDFT
*SAME- The current library in the library list for the current thread is not changed.
*CRTDFT- No library is in the current entry; objects created into the current library go to QGPL by default.
Examples
CHGLIBL LIBL(ULIB10 ULIB15 QGPL)
Sets the user portion of the current thread's library list to ULIB10, ULIB15 and QGPL, searched in that order.
Generated from os/cl/catalog/CHGLIBL.json and os/cl/help/CHGLIBL.json.