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

328 lines
14 KiB
HTML

<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Create Journal Receiver (CRTJRNRCV)</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="CRTJRNRCV.Top_Of_Page"></a>
<h2>Create Journal Receiver (CRTJRNRCV)</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="#CRTJRNRCV.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CRTJRNRCV.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CRTJRNRCV.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CRTJRNRCV"></a>
<p>The Create Journal Receiver (CRTJRNRCV) command creates a journal receiver. Once a journal receiver is attached to a journal (with the Create Journal (CRTJRN) or Change Journal (CHGJRN) command), journal entries can be placed in it. A preferred auxiliary storage pool(ASP), and a storage space threshold value can be specified for the journal receiver.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>A journal receiver cannot be created in library QTEMP.
</li>
<li>This command cannot be used to create a journal receiver for a remote journal.
</li>
<li>If the library to contain the journal receiver is on an independent ASP then ASP(*LIBASP) must be specified.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTJRNRCV.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CRTJRNRCV.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" rowspan="3"><a href="#CRTJRNRCV.JRNRCV"><b>JRNRCV</b></a></td>
<td valign="top">Journal receiver</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Required, Positional 1</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Journal receiver</td>
<td valign="top"><i>Simple name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*CURLIB</u></b></td>
</tr><tr>
<td valign="top"><a href="#CRTJRNRCV.ASP"><b>ASP</b></a></td>
<td valign="top">ASP number</td>
<td valign="top">1-32, <b><u>*LIBASP</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTJRNRCV.THRESHOLD"><b>THRESHOLD</b></a></td>
<td valign="top">Journal receiver threshold</td>
<td valign="top">1-1000000000, <b><u>1500000</u></b>, *NONE</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTJRNRCV.TEXT"><b>TEXT</b></a></td>
<td valign="top">Text 'description'</td>
<td valign="top"><i>Character value</i>, <b><u>*BLANK</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTJRNRCV.UNIT"><b>UNIT</b></a></td>
<td valign="top">Preferred storage unit</td>
<td valign="top">1-255, <b><u>*ANY</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTJRNRCV.AUT"><b>AUT</b></a></td>
<td valign="top">Authority</td>
<td valign="top"><i>Name</i>, <b><u>*LIBCRTAUT</u></b>, *CHANGE, *ALL, *USE, *EXCLUDE</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CRTJRNRCV.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CRTJRNRCV.JRNRCV"></a>
<h3>Journal receiver (JRNRCV)</h3>
<p>Specifies the name and library of the journal receiver that is being created.
</p>
<p>This is a required parameter.
</p>
<p><b>Qualifier 1: Journal receiver</b>
</p>
<dl>
<dt><b><i>receiver-name</i></b></dt>
<dd>Specify the name of the journal receiver being created.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b>*CURLIB</b></dt>
<dd>The journal receiver is created in the current library. If no library is specified as the current library for the job, QGPL is used.
</dd>
<dt><b><i>library-name</i></b></dt>
<dd>Specify the library where the journal receiver is to be created.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTJRNRCV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTJRNRCV.ASP"></a>
<h3>ASP number (ASP)</h3>
<p>Specifies the auxiliary storage pool (ASP) from which the system allocates storage for the journal receiver.
</p>
<dl>
<dt><b><u>*LIBASP</u></b></dt>
<dd>The storage space for the journal receiver is allocated from the same auxiliary storage pool as the storage space of the journal receiver's library.
</dd>
<dt><b><i>ASP-identifier</i></b></dt>
<dd>Specify a value ranging from 1 through 32 to specify the identifier of the ASP from which to have the storage space of the journal receiver allocated. Valid values depend on how ASPs are defined on the system.
<p>
<b>Note: </b>The value of 1 is the system ASP, any other value indicates a user ASP.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTJRNRCV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTJRNRCV.THRESHOLD"></a>
<h3>Journal receiver threshold (THRESHOLD)</h3>
<p>Specifies a storage space threshold value (in KB) for the journal receiver. If the threshold value is exceeded during journaling, one of the following occurs:
</p>
<ul>
<li>The message CPF7099 is sent to the journal message queue if the journal has the MNGRCV(*USER) attribute.
</li>
<li>The system attempts to create and attach a new receiver if the journal has the MNGRCV(*SYSTEM) attribute. When the old receiver is detached, the message CPF7020 is sent to the journal message queue. If the attempt fails due to lock conflicts, the system sends the message CPI70E5 and then tries again every ten minutes (or as often as requested via the MNGRCVDLY parm) until the change journal operation is successful.
</li>
<li>When the system cannot determine if the journal has the MNGRCV(*SYSTEM) attribute, or if the attempt to create and attach a new journal receiver fails because of something other than a lock conflict, the message CPI70E3 is sent.
</li>
</ul>
<p>The journal message queue is specified on the CRTJRN (Create Journal) or CHGJRN (Change Journal) command.
</p>
<p>
<b>Note: </b>The value for the MNGRCV parameter is specified for the journal on the CRTJRN or CHGJRN command. If you have not specified MNGRCV(*SYSTEM), and the threshold value is exceeded, you may want to take some action, such as issuing a CHGJRN command.
</p>
<p>
<b>Note: </b>If RCVSIZOPT(*RMVINTENT) is specified for the journal, the internal space occupied by the internal entries applies toward the receiver threshold. Sometime after the journal receiver is detached, the space for the internal entries will be freed. At that time the size of the journal receiver will be less than the specified threshold value.
</p>
<dl>
<dt><b><u>1500000</u></b></dt>
<dd>This is the default threshold value. Each 1000KB specifies 1,024,000 bytes of storage space.
</dd>
<dt><b>*NONE</b></dt>
<dd>No threshold value is specified. The message CPF7099 is not sent and MNGRCV(*SYSTEM) cannot be specified when attaching this receiver to a journal.
</dd>
<dt><b><i>1-1000000000</i></b></dt>
<dd>Specify the journal receiver threshold value in kilobytes (KB) of storage. Each 1000 KB specifies 1,024,000 bytes of storage space. A value less than 100,000 will automatically be reset to 100,000. When the size of the space for the journal receiver is larger than the size specified by this value, a message is sent to the identified message queue if appropriate, and journaling continues.
<p><b>Notes:</b>
</p>
<ol>
<li>If you plan to attach this journal receiver to a journal that does not have one of the *MAXOPT values from the RCVSIZOPT parameter specified, the maximum threshold you should specify is 1,919,999 in kilobytes.
</li>
<li>If you specify a value less than 100,000, the value will automatically be reset to 100,000. Otherwise you may see the threshold exceeded message too frequently. Also, if the threshold value is too small, the threshold exceeded message may occur when the journal receiver is attached to a journal either with the Create Journal (CRTJRN) command or the Change Journal (CHGJRN) command.
</li>
</ol>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTJRNRCV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTJRNRCV.TEXT"></a>
<h3>Text 'description' (TEXT)</h3>
<p>Specifies the text that briefly describes the object.
</p>
<dl>
<dt><b><u>*BLANK</u></b></dt>
<dd>No text is specified.
</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="#CRTJRNRCV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTJRNRCV.UNIT"></a>
<h3>Preferred storage unit (UNIT)</h3>
<p>This parameter is no longer supported. It has been kept strictly for syntactic compatibility with releases prior to Version 1 Release 3 Modification 0 of the AS/400 system.
</p>
<p>To isolate the journal receiver to a disk arm, use the ASP parameter. For more information on using user ASPs, see the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p>You can specify either *ANY or a value from 1 through 32 for this parameter.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTJRNRCV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTJRNRCV.AUT"></a>
<h3>Authority (AUT)</h3>
<p>Specifies the authority you are giving to users who do not have specific authority for the object, who are not on an authorization list, and whose group profile or supplemental group profiles do not have specific authority for the object.
</p>
<dl>
<dt><b><u>*LIBCRTAUT</u></b></dt>
<dd>The system determines the authority for the object by using the value specified for the <b>Create authority (CRTAUT)</b> parameter on the Create Library command (CRTLIB) for the library containing the object to be created. If the value specified for the CRTAUT parameter is changed, the new value will not affect any existing objects.
</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>name</i></b></dt>
<dd>Specify the name of an authorization list to be used for authority to the object. Users included in the authorization list are granted authority to the object as specified in the list. The authorization list must exist when the object is created.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTJRNRCV.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CRTJRNRCV.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
CRTJRNRCV JRNRCV(MYLIB/JRNRCLA) ASP(3)
THRESHOLD(100000) AUT(*ALL)
TEXT('RECEIVER FOR WEEK 37')
</pre>
</p>
<p>This command creates a journal receiver named JRNRCLA in library MYLIB. Storage space for the journal receiver is allocated from user auxiliary storage pool (ASP) 3. When the size of JRNRCLA is larger than 100000 kilobytes (102,400,000 bytes), the message CPF7099 is sent to the journal message queue, if the journal to which this receiver is attached has the MNGRCV(*USER) attribute. The public authority to the journal receiver is *ALL.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTJRNRCV.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CRTJRNRCV.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF2283</b></dt>
<dd>Authorization list &amp;1 does not exist.
</dd>
<dt><b>CPF70FD</b></dt>
<dd>Internal system journal status object recreated.
</dd>
<dt><b>CPF7010</b></dt>
<dd>Object &amp;1 in &amp;2 type *&amp;3 already exists.
</dd>
<dt><b>CPF7011</b></dt>
<dd>Not enough storage or resources.
</dd>
<dt><b>CPF7012</b></dt>
<dd>Auxiliary storage pool &amp;4 not found for object &amp;1.
</dd>
<dt><b>CPF70FD</b></dt>
<dd>Internal system journal status object recreated.
</dd>
<dt><b>CPF9801</b></dt>
<dd>Object &amp;2 in library &amp;3 not found.
</dd>
<dt><b>CPF9802</b></dt>
<dd>Not authorized to object &amp;2 in &amp;3.
</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>
<dt><b>CPF9839</b></dt>
<dd>Object &amp;1 not created.
</dd>
<dt><b>CPF9840</b></dt>
<dd>Object &amp;1 not created.
</dd>
<dt><b>CPF9873</b></dt>
<dd>ASP status is preventing access to object.
</dd>
<dt><b>CPF9875</b></dt>
<dd>Resources exceeded on ASP &amp;1.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTJRNRCV.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>