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

297 lines
12 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 Message File (CRTMSGF)</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="CRTMSGF.Top_Of_Page"></a>
<h2>Create Message File (CRTMSGF)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#CRTMSGF.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CRTMSGF.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CRTMSGF.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CRTMSGF"></a>
<p>The Create Message File (CRTMSGF) command creates a user-defined message file for storing message descriptions. The message file should be stored in a library for which all users who are to use the predefined messages have authority. The system is shipped with the IBM-supplied message files, stored in the system library, QSYS: the CPF message file, QCPFMSG (for the OS/400 system and machine interface messages); and the licensed program message files, such as QRPGMSG (for RPG messages).
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CRTMSGF.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="#CRTMSGF.MSGF"><b>MSGF</b></a></td>
<td valign="top">Message file</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: Message file</td>
<td valign="top"><i>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="#CRTMSGF.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" rowspan="4"><a href="#CRTMSGF.SIZE"><b>SIZE</b></a></td>
<td valign="top">File size</td>
<td valign="top"><i>Element list</i></td>
<td valign="top" rowspan="4">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top">Element 1: Initial storage size</td>
<td valign="top">
<i>Integer</i>, <b><u>10</u></b></td>
</tr>
<tr>
<td valign="top">Element 2: Increment storage size</td>
<td valign="top">
<i>Integer</i>, <b><u>2</u></b></td>
</tr>
<tr>
<td valign="top">Element 3: Maximum increments</td>
<td valign="top">
<i>Integer</i>, <b><u>*NOMAX</u></b></td>
</tr>
<tr>
<td valign="top"><a href="#CRTMSGF.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>
<tr>
<td valign="top"><a href="#CRTMSGF.CCSID"><b>CCSID</b></a></td>
<td valign="top">Coded character set ID</td>
<td valign="top">1-65535, <b><u>*HEX</u></b>, *MSGD, *JOB</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CRTMSGF.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CRTMSGF.MSGF"></a>
<h3>Message file (MSGF)</h3>
<p>Specifies the message file to be created.
</p>
<p>This is a required parameter.
</p>
<p><b>Qualifier 1: Message file</b>
</p>
<dl>
<dt><b><i>message-file-name</i></b></dt>
<dd>Specify the name of the message file being created.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*CURLIB</u></b></dt>
<dd>The current library for the job is used to create the message file. If no current library entry exists in the library list, the QGPL library is used.
</dd>
<dt><b><i>library-name</i></b></dt>
<dd>Specify the library where the message file is to be created.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTMSGF.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, enclosed in apostrophes.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTMSGF.SIZE"></a>
<h3>File size (SIZE)</h3>
<p>Specifies the initial storage size of the message file, the amount of each increase in its storage, and the number of times the size can be increased. The storage size is expressed in kilobytes (KB). (1KB equals 1024 bytes of storage.)
</p>
<p><b>Element 1: Initial storage size</b>
</p>
<dl>
<dt><b><u>10</u></b></dt>
<dd>The message file has 10 KB of storage assigned to it.
</dd>
<dt><b><i>initial-Kilobytes</i></b></dt>
<dd>Specify the initial size of the file (must be greater than 0).
</dd>
</dl>
<p><b>Element 2: Increment storage size</b>
</p>
<dl>
<dt><b><u>2</u></b></dt>
<dd>2 KB of storage is added to the message file each time its size is increased.
</dd>
<dt><b><i>increment-value</i></b></dt>
<dd>Specify the number of kilobytes added each time the message file's size is increased.
</dd>
</dl>
<p><b>Element 3: Maximum increments</b>
</p>
<dl>
<dt><b><u>*NOMAX</u></b></dt>
<dd>The amount added to the message file is not limited by the user. The maximum size is determined by the system.
</dd>
<dt><b><i>number-of-increments</i></b></dt>
<dd>Specify the maximum number of times that a message file's size can be increased. Specify a 0 to prevent any additions to the initial size of the file.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTMSGF.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="#CRTMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTMSGF.CCSID"></a>
<h3>Coded character set ID (CCSID)</h3>
<p>Specifies the coded character set identifier (CCSID) that is to be associated with the message file. The CCSID associated with the message file always overrides the CCSID associated with the message description. To use the CCSID associated with the message description, change the CCSID associated with the message file to *MSGD. For more information on message handler and its use of CCSIDs, see the Globalization topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<dl>
<dt><b><u>*HEX</u></b></dt>
<dd>The CCSID that is associated with the message file is set to 65535. The 65535 CCSID means that no conversions are to occur when adding or changing message descriptions in the message file and no conversions are to occur when retrieving message descriptions from the file. The CCSID associated with the message description is saved in the event the message file is ever changed to *MSGD.
</dd>
<dt><b>*MSGD</b></dt>
<dd>The CCSID that is associated with the message file is set to 65534. The 65534 CCSID means to use the CCSID associated with the message description when retrieving message text from the file. When adding or changing message descriptions in the message file, no conversions are to occur. The message description is tagged with the CCSID specified on the ADDMSGD or CHGMSGD commands.
</dd>
<dt><b>*JOB</b></dt>
<dd>The CCSID that is associated with the message file is the CCSID of the job calling this command.
</dd>
<dt><b><i>coded-character-set-identifier</i></b></dt>
<dd>Specify the CCSID that the message file is to be created with. Any message descriptions added to this message file are converted from the CCSID specified to the CCSID of the message file. Valid values range from 1 through 65535. See the Globalization information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter for a list of valid CCSID values. Only CCSID values that a job can be changed to are accepted.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CRTMSGF.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
CRTMSGF MSGF(INVLIB/INVMSGS)
TEXT('Inventory Application Messages')
</pre>
</p>
<p>This command creates a message file named INVMSGS in which predefined inventory application messages are stored. The file is stored in the library INVLIB, for which all users of the file must have *USE authority. Because the AUT parameter is defaulted, all users have *CHANGE authority for the file, meaning they can retrieve messages from the file.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CRTMSGF.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF2108</b></dt>
<dd>Object &amp;1 type *&amp;3 not added to library &amp;2.
</dd>
<dt><b>CPF2112</b></dt>
<dd>Object &amp;1 in &amp;2 type *&amp;3 already exists.
</dd>
<dt><b>CPF2113</b></dt>
<dd>Cannot allocate library &amp;1.
</dd>
<dt><b>CPF2151</b></dt>
<dd>Operation failed for &amp;2 in &amp;1 type *&amp;3.
</dd>
<dt><b>CPF2182</b></dt>
<dd>Not authorized to library &amp;1.
</dd>
<dt><b>CPF2283</b></dt>
<dd>Authorization list &amp;1 does not exist.
</dd>
<dt><b>CPF2402</b></dt>
<dd>Library &amp;1 not found
</dd>
<dt><b>CPF247E</b></dt>
<dd>CCSID &amp;1 is not valid.
</dd>
<dt><b>CPF2497</b></dt>
<dd>Size for &amp;1 in &amp;2 exceeds machine limit.
</dd>
<dt><b>CPF9838</b></dt>
<dd>User profile storage limit exceeded.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTMSGF.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>