Command reference / library

ADDLIBLE

Add Library List Entry

Adds one library name to the user portion of the library list for the current thread. The user portion is the last part of the list, after the system portion and any product libraries and current library entry. You can choose where in the user portion the library is placed.

Allowed environments: *ALL. Positional parameters: 2.

Parameters

LIB Library

Specifies the library to add to the user portion of the current thread's library list. Only one library is added per command, and the user portion can hold up to 250 libraries. This parameter is required.

Type
*NAME
Required
Yes
Length
10
Case
Uppercase

POSITION Library list position

Specifies where in the user portion of the library list the library is inserted. It can be a single value or a two-element list.

Type
*ELEM
Required
No
Case
Uppercase
*FIRST
The library is inserted in front of the libraries already in the user portion.
*LAST
The library is added to the end of the user portion.
*AFTER
The library is added after the reference library, which must already be in the user portion.
*BEFORE
The library is added before the reference library, which must already be in the user portion.
*REPLACE
The library takes the reference library's position, and the reference library is removed from the list.
Elements in order

List position List position

Type
*CHAR
Required
No
Default
*FIRST
Length
8
Case
Uppercase

Allowed values: *FIRST, *LAST, *AFTER, *BEFORE, *REPLACE

Reference library Reference library

Type
*NAME
Required
No
Length
10
Case
Uppercase

Examples

ADDLIBLE LIB(TESTLIB) POSITION(*LAST)

Adds TESTLIB to the end of the user portion of the library list.

IBM command documentation

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