CHGCURLIB (Change Current Library)
Purpose
The Change Current Library (CHGCURLIB) command replaces the current library entry of the library list.
Note: If the current library entry of the library list is changed from a menu or program that has a current library associated with it, then the current library changes are only in effect during the call level of the menu or program from which it was changed.
Required Parameters
- CURLIB
- Specifies the library that replaces the current library entry in the job's library list.
*CRTDFT: No library is the current entry of the library list. If objects are created into the current library, the QGPL library is used as the default.
library-name: Specify the name of the library that replaces the current library entry in the job's library list.
Note: QTEMP cannot be specified for this parameter. Example for CHGCURLIB
CHGCURLIB CURLIB(ULIB10)This command changes the current library entry of the current job's library list to contain library ULIB10.
Error messages for CHGCURLIB
*ESCAPE Messages
- CPF2106
- Library list not changed.
- CPF2110
- Library &1 not found.
- CPF2113
- Cannot allocate library &1.
- CPF2133
- First product library on library list destroyed.
- CPF2134
- Second product library on library list destroyed.
- CPF2137
- Current library on library list destroyed.
- CPF2176
- Library &1 damaged.
- CPF2182
- Not authorized to library &1