|Where allowed to run: All environments (*ALL)
The cozTools-Add Multi Libl Entries (ADDLIBL) command allows the user to add 1 or more libraries to the current user-portion of the library list. This is functionally equivalent to the IBM i CL command ADDLIBLE, however ADDLIBL allows the user to add more than one library at a time.
|LIB||Libraries||Values (up to 250 repetitions): Name||Required, Positional 1|
|POSITION||Position on library list||Single values: *FIRST, *LAST, *START, *END
Other values: Element list
|Optional, Positional 2|
|Element 1: Position||*BEFORE, *AFTER, *REPLACE|
|Element 2: Reference library||Name|
|CURLIB||Curent library||Name, *SAME, *CRTDFT||Optional, Positional 3|
Specifies the libraries to be added to the user portion of the library list for the current thread. A maximum of 250 libraries may exist in the user portion of the library list. Up to 250 library names may be added at a time with this command.
This is a required parameter.
You can specify 250 values for this parameter.
Specifies the position in the user portion of the library list for the current thread where the libraries are inserted. This parameter can be specified as a single value or as a list of two elements.
Element 1: Position
Element 2: Reference library
Example 1: Simple Command Example
ADDLIBL LIB(COZOOLS QGPL QTEMP) POSITION(*REPLACE PGMRTOOL)
This command replaces the library named PGMRTOOL on the user portion of the library list with 3 libraries: COZTOOLS, QGPL, and QTEMP. The PGMRTOOL library is removed from the library list.
Example 2: More Complex Command Example
ADDLIBL LIB(COZOOLS) POSITION(*LAST)
This command adds the COZZI TOOLS library named COZTOOLS to the end of the user portion of the library list.