ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/chglib.htm

266 lines
10 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Change Library (CHGLIB)</title>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body bgcolor="white">
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<a name="CHGLIB.Top_Of_Page"></a>
<h2>Change Library (CHGLIB)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>Yes
</td>
<td valign="top" align="right">
<a href="#CHGLIB.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CHGLIB.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CHGLIB.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CHGLIB"></a>
<p>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.
</p>
<p><b>Restrictions:</b>
</p>
<ol>
<li>To specify a value other than *SAME for the <b>Create object auditing (CRTOBJAUD)</b> parameter you must have audit (*AUDIT) special authority.
</li>
<li>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.
</li>
</ol>
<p>
<b>Note: </b>If you do not specify at least one of the <b>Library type (TYPE)</b>, <b>Text 'description' (TEXT)</b>, <b>Create authority (CRTAUT)</b>, or <b>Create object auditing (CRTOBJAUD)</b> parameters, completion message CPC2105 is sent to indicate that the library was not changed.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLIB.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CHGLIB.PARAMETERS.TABLE">Parameters</a></h3>
<table border="1" cellpadding="4" cellspacing="0">
<!-- col1="10" col2="15" col3="30" col4="10" -->
<tr>
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
</tr>
<tr>
<td valign="top"><a href="#CHGLIB.LIB"><b>LIB</b></a></td>
<td valign="top">Library</td>
<td valign="top"><i>Name</i>, *CURLIB</td>
<td valign="top">Required, Key, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#CHGLIB.TYPE"><b>TYPE</b></a></td>
<td valign="top">Library type</td>
<td valign="top"><b><u>*SAME</u></b>, *PROD, *TEST</td>
<td valign="top">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top"><a href="#CHGLIB.TEXT"><b>TEXT</b></a></td>
<td valign="top">Text 'description'</td>
<td valign="top"><i>Character value</i>, <b><u>*SAME</u></b>, *BLANK</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGLIB.CRTAUT"><b>CRTAUT</b></a></td>
<td valign="top">Create authority</td>
<td valign="top"><i>Name</i>, <b><u>*SAME</u></b>, *SYSVAL, *CHANGE, *ALL, *USE, *EXCLUDE</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGLIB.CRTOBJAUD"><b>CRTOBJAUD</b></a></td>
<td valign="top">Create object auditing</td>
<td valign="top"><b><u>*SAME</u></b>, *SYSVAL, *NONE, *USRPRF, *CHANGE, *ALL</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CHGLIB.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CHGLIB.LIB"></a>
<h3>Library (LIB)</h3>
<p>Specifies the library to be changed.
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b>*CURLIB</b></dt>
<dd>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.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library to be changed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLIB.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLIB.TYPE"></a>
<h3>Library type (TYPE)</h3>
<p>Specifies the new library type.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The TYPE attribute of the library remains the same.
</dd>
<dt><b>*PROD</b></dt>
<dd>This is a production library. Database files in production libraries are not opened for updating if a user is in debug mode and requested that production libraries be protected. A user can protect all database files in production libraries from updates by specifying *NO for the <b>Update production files (UPDPROD)</b> parameter on the Start Debug (STRDBG) command to begin testing. However, this protection does not prevent the program from deleting database files or from changing other objects (such as data areas) in the library.
</dd>
<dt><b>*TEST</b></dt>
<dd>This is a test library. All objects in a test library are updated during testing, even if special protection is requested for production libraries.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLIB.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLIB.TEXT"></a>
<h3>Text 'description' (TEXT)</h3>
<p>Specifies the text that briefly describes the object.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The text, if any, remains unchanged.
</dd>
<dt><b>*BLANK</b></dt>
<dd>The text is set to blanks.
</dd>
<dt><b><i>'description'</i></b></dt>
<dd>Specify no more than 50 characters of text, enclosed in apostrophes.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLIB.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLIB.CRTAUT"></a>
<h3>Create authority (CRTAUT)</h3>
<p>Specifies 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.
</p>
<p>When the user creates an object into this library, the <b>Authority (AUT)</b> parameter on the create command for the object determines the public authority for the object. If the AUT value on the create command for the object is *LIBCRTAUT, the public authority for the object is set to the CRTAUT value for the library.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The default public authority value does not change.
</dd>
<dt><b>*SYSVAL</b></dt>
<dd>The default public authority will be determined by the value of the QCRTAUT system value when an object is created into this library.
</dd>
</dl>
<dl>
<dt><b>*CHANGE</b></dt>
<dd>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. *CHANGE authority provides object operational (*OBJOPR) authority and all data authority. If the object is an authorization list, the user cannot add, change, or remove users.
</dd>
</dl>
<dl>
<dt><b>*ALL</b></dt>
<dd>The user can perform all operations except those limited to the owner or controlled by authorization list management (*AUTLMGT) authority. The user can control the object's existence, specify the security for the object, change the object, and perform basic functions on the object. The user also can change ownership of the object.
</dd>
</dl>
<dl>
<dt><b>*USE</b></dt>
<dd>The user can perform basic operations on the object, such as running a program or reading a file. The user cannot change the object. Use (*USE) authority provides object operational (*OBJOPR), read (*READ), and execute (*EXECUTE) authorities.
</dd>
</dl>
<dl>
<dt><b>*EXCLUDE</b></dt>
<dd>The user cannot access the object.
</dd>
</dl>
<dl>
<dt><b><i>authorization-list-name</i></b></dt>
<dd>Specify the name of the authorization list whose authority is used for the object.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLIB.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLIB.CRTOBJAUD"></a>
<h3>Create object auditing (CRTOBJAUD)</h3>
<p>Specifies the auditing value for objects created in this library.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
<dt><b>*SYSVAL</b></dt>
<dd>The auditing value will be determined by the value of the QCRTOBJAUD system value when an object is created into this library.
</dd>
<dt><b>*NONE</b></dt>
<dd>Using or changing this object will not cause an audit entry to be sent to the security journal.
</dd>
<dt><b>*USRPRF</b></dt>
<dd>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. The <b>Object auditing value (OBJAUD)</b> parameter on the Change User Auditing (CHGUSRAUD) command is used to turn on auditing for a specific user.
</dd>
<dt><b>*CHANGE</b></dt>
<dd>All change access to this object by all users will cause an audit entry to be sent to the security journal.
</dd>
<dt><b>*ALL</b></dt>
<dd>All change or read access to this object by all users will cause an audit entry to be sent to the security journal.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLIB.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGLIB.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
CHGLIB LIB(LIB1) TYPE(*TEST) TEXT('NEW TEXT FOR LIB1')
</pre>
</p>
<p>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.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLIB.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGLIB.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF21A0</b></dt>
<dd>*AUDIT required to create or change libraries.
</dd>
<dt><b>CPF210C</b></dt>
<dd>Library &amp;1 not changed.
</dd>
<dt><b>CPF2150</b></dt>
<dd>Object information function failed.
</dd>
<dt><b>CPF2151</b></dt>
<dd>Operation failed for &amp;2 in &amp;1 type *&amp;3.
</dd>
<dt><b>CPF2283</b></dt>
<dd>Authorization list &amp;1 does not exist.
</dd>
<dt><b>CPF9810</b></dt>
<dd>Library &amp;1 not found.
</dd>
<dt><b>CPF9820</b></dt>
<dd>Not authorized to use library &amp;1.
</dd>
<dt><b>CPF9830</b></dt>
<dd>Cannot assign library &amp;1.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLIB.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>