Command reference / library

CHGSYSLIBL

Change System Library List

Adds a library to the beginning of the system portion of the library list for the current thread, or removes one from it. QSYS always stays in the system portion. The command is shipped with *EXCLUDE public authority and authorized to the security officer and users with *ALLOBJ.

Allowed environments: *ALL. Positional parameters: 2.

Parameters

LIB Library

Specifies the library to add to or remove from the system portion of the library list for the current thread.

Type
*NAME
Required
Yes
Length
10
Case
Uppercase

OPTION Option

Specifies whether the library is added or removed.

Type
*CHAR
Required
No
Default
*ADD
Length
7
Case
Uppercase

Allowed values: *ADD, *REMOVE

*ADD
The library is added as the first library in the system portion of the library list.
*REMOVE
The library is removed from the system portion of the library list.

Examples

CHGSYSLIBL LIB(PAYROLL) OPTION(*ADD)

Adds PAYROLL to the beginning of the system portion of the library list.

IBM command documentation

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