Command reference / library

CHGLIB

Change Library

Updates a library's type, descriptive text, default create authority, or object auditing default.

Allowed environments: *ALL. Positional parameters: 2.

Parameters

LIB Library

Sets the library to be changed.

Type
*NAME
Required
Yes
Length
10
Case
Uppercase

Suggested / special values: *CURLIB

*CURLIB
The current library for the thread is the library to be changed. If no current library exists in the library list for the current thread, the QGPL library is changed.
name
Enter the name of the library to be changed.

TYPE Library type

Sets the new library type.

Type
*CHAR
Required
No
Default
*SAME
Length
5
Case
Uppercase

Allowed values: *SAME, *PROD, *TEST

*SAME
The TYPE attribute of the library remains the same.
*PROD
Production library.
*TEST
Test library. All objects in a test library are updated during testing, even if special protection is requested for production libraries.

TEXT Text 'description'

Sets the text that briefly describes the object.

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Mixed case

Suggested / special values: *SAME, *BLANK

*SAME
Keep the current text, if any,.
*BLANK
The text is set to blanks.
'description'
Enter no more than 50 characters of text, enclosed in apostrophes.

CRTAUT Create authority

Sets the default public authority for an object created into this library. This is the authority given to a user who does not have specific authority for the object, who is not on an authorization list specified for the object, and whose user groups have no specific authority for the object.

Type
*NAME
Required
No
Default
*SAME
Length
10
Case
Uppercase

Suggested / special values: *SAME, *SYSVAL, *CHANGE, *ALL, *USE, *EXCLUDE

*SAME
Keep the current default public authority value.
*SYSVAL
The default public authority will be determined by the value of the QCRTAUT system value when an object is created into this library.
*CHANGE
The user can perform all operations on the object except those limited to the owner or controlled by object existence (*OBJEXIST) and object management (*OBJMGT) authorities. The user can change and perform basic functions on the object.
*ALL
The user can perform all operations except those limited to the owner or controlled by authorization list management (*AUTLMGT) authority.
*USE
The user can perform basic operations on the object, such as running a program or reading a file. The user cannot change the object.
*EXCLUDE
The user cannot access the object.
authorization-list-name
Enter the name of the authorization list whose authority is used for the object.

CRTOBJAUD Create object auditing

Sets the auditing value for objects created in this library.

Type
*CHAR
Required
No
Default
*SAME
Length
10
Case
Uppercase

Allowed values: *SAME, *SYSVAL, *NONE, *USRPRF, *CHANGE, *ALL

*SAME
Keep the current setting.
*SYSVAL
The auditing value will be determined by the value of the QCRTOBJAUD system value when an object is created into this library.
*NONE
Using or changing this object will not cause an audit entry to be sent to the security journal.
*USRPRF
The user profile of the user accessing this object is used to determine if an audit record will be sent to the security journal for the access.
*CHANGE
All change access to this object by all users will cause an audit entry to be sent to the security journal.
*ALL
All change or read access to this object by all users will cause an audit entry to be sent to the security journal.

Examples

CHGLIB LIB(LIB1) TYPE(*TEST) TEXT('NEW TEXT FOR LIB1')

Changes the TYPE attribute of the library named LIB1 to *TEST and changes the text description to the value specified by the TEXT parameter.

IBM command documentation

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