Command reference / library

CHGCURLIB

Change Current Library

Replaces the current library entry in the library list for the current thread. If the command is run from a menu or program that has its own current library, the change applies only to that menu's or program's call level.

Allowed environments: *ALL. Positional parameters: 1.

Parameters

CURLIB Current library

Specifies the library that replaces the current library entry in the library list for the current thread. This is a required parameter.

Type
*NAME
Required
Yes
Length
10
Case
Uppercase

Suggested / special values: *CRTDFT

*CRTDFT
No library is in the current library entry for the thread. Objects created into the current library use QGPL as the default.

Examples

CHGCURLIB CURLIB(ULIB10)

Changes the current library entry for the current thread to library ULIB10.

IBM command documentation

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