CL Command Reference - CHGLIB
CL Command List > CHGLIB Reference
Description:
The Change Library (CHGLIB) command can change the type attribute, the text description, the default create authority value, or the default object auditing value of a library.
Restrictions:
1. To specify a value other than *SAME for the Create object auditing (CRTOBJAUD) parameter you must have audit (*AUDIT) special authority.
2. To specify only the CRTOBJAUD parameter to be changed, only *AUDIT special authority is required. To specify any other parameter to be changed, you must have object management (*OBJMGT) authority for the library to be changed.
Note: If you do not specify at least one of the Library type (TYPE), Text ¡¯description¡¯ (TEXT), Create authority (CRTAUT), or Create object auditing (CRTOBJAUD) parameters, completion message CPC2105 is sent to indicate that the library was not changed.
Examples:
CHGLIB LIB(LIB1) TYPE(*TEST) TEXT(¡¯NEW TEXT FOR LIB1¡¯)
This command changes the TYPE attribute of the library named LIB1 to *TEST and changes the text description to the value specified by the TEXT parameter.