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

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.

Type
*NAME
Required
No
Default
*SAME
Length
10
List limit
250
Case
Uppercase

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.

Type
*NAME
Required
No
Default
*SAME
Length
10
Case
Uppercase

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.

IBM command documentation

Generated from os/cl/catalog/CHGLIBL.json and os/cl/help/CHGLIBL.json.