Change Current Library (CHGCURLIB)
Where allowed to run: All environments (*ALL) Threadsafe: Yes |
Parameters Examples Error messages |
The Change Current Library (CHGCURLIB) command replaces the current library entry in the library list for the current thread.
Note: If this command is used to change the current library entry in the library list from a menu or program that has a current library associated with it, the current library change is only in effect for the call level of the menu or program from which it was changed.
Top |
Parameters
Keyword | Description | Choices | Notes |
---|---|---|---|
CURLIB | Current library | Name, *CRTDFT | Required, Positional 1 |
Top |
Current library (CURLIB)
Specifies the library that replaces the current library entry in the library list for the current thread.
This is a required parameter.
- *CRTDFT
- No library should be in the current entry in the library list for the current thread. If objects are created into the current library, the QGPL library is used as the default current library.
- name
- Specify the name of the library that replaces the current library entry in the library list for the current thread.
Top |
Examples
CHGCURLIB CURLIB(ULIB10)
This command changes the current library entry in the library list for the current thread to library ULIB10.
Top |
Error messages
*ESCAPE Messages
- CPF2106
- Library list not available.
- 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.
Top |