Change System Library List (CHGSYSLIBL)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Change System Library List (CHGSYSLIBL) command changes the system portion of the library list for the current thread. You can specify if the library is added to the beginning of the system portion of the library list, or removed from the system portion of the library list.

Restrictions:

  1. This command is shipped with exclude (*EXCLUDE) public authority. It is shipped authorized only to the security officer or a user with all object (*ALLOBJ) special authority.
  2. The QSYS library is always in the system portion of the library list and cannot be added to or removed from it.
Top

Parameters

Keyword Description Choices Notes
LIB Library Name Required, Positional 1
OPTION Option *ADD, *REMOVE Optional, Positional 2
Top

Library (LIB)

Specifies the library to be added to or removed from the system portion of the library list for the current thread.

This is a required parameter.

name
Specify the name of the library to be added to or removed from the system portion of the library list for the current thread.
Top

Option (OPTION)

Specifies if the library is added to or removed from the system portion of the library list for the current thread.

*ADD
The specified library is added as the first library in the system portion of the library list for the current thread.
*REMOVE
The specified library is removed from the system portion of the library list for the current thread.
Top

Examples

CHGSYSLIBL   LIB(PAYROLL)  OPTION(*ADD)

This command adds the library PAYROLL to the beginning of the system portion of the library list.

Top

Error messages

*ESCAPE Messages

CPF2103
Library &1 already exists in library list.
CPF2106
Library list not available.
CPF2110
Library &1 not found.
CPF2113
Cannot allocate library &1.
CPF2118
Library &1 not added.
CPF2128
Library &1 not in system portion of library list.
CPF2176
Library &1 damaged.
CPF2182
Not authorized to library &1.
Top