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

257 lines
11 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 Message File (CHGMSGF)</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="CHGMSGF.Top_Of_Page"></a>
<h2>Change Message File (CHGMSGF)</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="#CHGMSGF.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CHGMSGF.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CHGMSGF.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CHGMSGF"></a>
<p>The Change Message File (CHGMSGF) command changes the attributes of a specified message file or a list of message files.
</p>
<p><b>Restrictions</b>
</p>
<ol>
<li>Only libraries to which you have use (*USE) authority for are searched.
</li>
<li>You must have *USE and delete (*DLT) authorities for the message file.
</li>
</ol>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CHGMSGF.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="#CHGMSGF.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, Key, Positional 1</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Message file</td>
<td valign="top"><i>Generic name, name</i>, *ALL</td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB, *USRLIBL, *ALLUSR, *ALL</td>
</tr><tr>
<td valign="top"><a href="#CHGMSGF.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="#CHGMSGF.CCSID"><b>CCSID</b></a></td>
<td valign="top">Coded character set ID</td>
<td valign="top">1-65535, <b><u>*SAME</u></b>, *HEX, *MSGD, *JOB</td>
<td valign="top">Optional, Positional 2</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CHGMSGF.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CHGMSGF.MSGF"></a>
<h3>Message file (MSGF)</h3>
<p>Specifies the message file or files whose attributes are being changed.
</p>
<p>This is a required parameter.
</p>
<p><b>Qualifier 1: Message file</b>
</p>
<dl>
<dt><b>*ALL</b></dt>
<dd>All message files in the libraries identified in the library qualifier are changed.
</dd>
<dt><b><i>generic*-message-file-name</i></b></dt>
<dd>Specify the generic name of the message file whose attributes are to be changed. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. The asterisk is a substitute for any valid character. A generic name specifies all objects with names that begin with the generic prefix for which the user has authority. If an asterisk is not included with the generic (prefix) name, the system assumes it to be the complete object name. If the complete object name is specified and the library qualifier is *USRLIBL, *ALL, or *ALLUSR, all message files of the specified name are changed.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the message file whose attributes are to be changed.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the library list for the current thread are searched until the first match is found.
</dd>
</dl>
<dl>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
</dd>
<dt><b>*USRLIBL</b></dt>
<dd>Only the libraries in the user portion of the thread's library list are searched.
</dd>
</dl>
<dl>
<dt><b>*ALL</b></dt>
<dd>All libraries in the system, including QSYS, are searched.
</dd>
</dl>
<dl>
<dt><b>*ALLUSR</b></dt>
<dd>All user libraries are searched. All libraries with names that do not begin with the letter Q are searched except for the following:
<p>
<pre>
#CGULIB #DSULIB #SEULIB
#COBLIB #RPGLIB
#DFULIB #SDALIB
</pre>
</p>
<p>Although the following Qxxx libraries are provided by IBM, they typically contain user data that changes frequently. Therefore, these libraries are considered user libraries and are also searched:
</p>
<p>
<pre>
QDSNX QRCLxxxxx QUSRIJS QUSRVxRxMx
QGPL QSRVAGT QUSRINFSKR
QGPL38 QSYS2 QUSRNOTES
QMGTC QSYS2xxxxx QUSROND
QMGTC2 QS36F QUSRPOSGS
QMPGDATA QUSER38 QUSRPOSSA
QMQMDATA QUSRADSM QUSRPYMSVR
QMQMPROC QUSRBRM QUSRRDARS
QPFRDATA QUSRDIRCL QUSRSYS
QRCL QUSRDIRDB QUSRVI
</pre>
</p>
<ol>
<li>'xxxxx' is the number of a primary auxiliary storage pool (ASP).
</li>
<li>A different library name, in the format QUSRVxRxMx, can be created by the user for each previous release supported by IBM to contain any user commands to be compiled in a CL program for the previous release. For the QUSRVxRxMx user library, VxRxMx is the version, release, and modification level of a previous release that IBM continues to support.
</li>
</ol>
</dd>
</dl>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library to be searched.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGMSGF.TEXT"></a>
<h3>Text 'description' (TEXT)</h3>
<p>Specifies text that describes the message file. The text specified replaces any previous text.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The text, if any, is not changed.
</dd>
<dt><b>*BLANK</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="#CHGMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGMSGF.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. This will not result in any text conversions on the message descriptions that already exist in the message file. Any message descriptions subsequently added to this message file will be converted from the CCSID specified on the Add Message Description (ADDMSGD) command to the CCSID of the message file. The CCSID associated with the message file 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.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The CCSID associated with the message file is not changed.
</dd>
<dt><b>*HEX</b></dt>
<dd>The CCSID associated with the message file is changed to 65535. 65535 means that no conversions are to occur when adding or changing message descriptions to the message file and no conversions are to occur when retrieving message descriptions from the file. The CCSID specified on the ADDMSGD or CHGMSGD commands is saved in case this message file is ever changed to *MSGD.
</dd>
<dt><b>*MSGD</b></dt>
<dd>The CCSID associated with the message file is changed to 65534. 65534 means to use the CCSID associated with the message description when retrieving message text from the file. When adding or changing message descriptions to the message file, no conversions are to occur and the message description is tagged with the CCSID specified on the ADDMSGD or CHGMSGD commands.
</dd>
<dt><b>*JOB</b></dt>
<dd>The CCSID associated with the message file is changed to the CCSID of the job that is calling this command.
</dd>
<dt><b><i>coded-character-set-identifier</i></b></dt>
<dd>Specify the coded character set identifier (CCSID) that is to be associated with the message file. The valid values range from 1 through 65535. Only CCSIDs that a job can be changed to are accepted. See the Globalization information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter for a list of valid CCSID values.
<p>
<b>Note: </b>Changing the CCSID associated with the message file does not change the CCSID associated with the message descriptions. If the message file CCSID is ever changed back to *MSGD the original CCSIDs associated with the message descriptions are remembered.
</p>
<p>Changing the CCSID associated with a message file that contains message descriptions may cause unpredictable results. This can occur when the character encoding of those message descriptions do not match the CCSID specified. Only change the CCSID of a message file that contains message descriptions to correct a message file CCSID. The change is made when a message file CCSID does not match the encoding of its message descriptions.
</p>
<p>For more information on the 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>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGMSGF.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
CHGMSGF MSGF(*ALL/*ALL) CCSID(65534)
</pre>
</p>
<p>This command changes the CCSID to 65534 for all of the message files on the system.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGMSGF.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF2401</b></dt>
<dd>Not authorized to library &amp;1.
</dd>
<dt><b>CPF2407</b></dt>
<dd>Message file &amp;1 in &amp;2 not found.
</dd>
<dt><b>CPF2411</b></dt>
<dd>Not authorized to message file &amp;1 in &amp;2.
</dd>
<dt><b>CPF247E</b></dt>
<dd>CCSID &amp;1 is not valid.
</dd>
<dt><b>CPF2483</b></dt>
<dd>Message file currently in use.
</dd>
<dt><b>CPF9830</b></dt>
<dd>Cannot assign library &amp;1.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGMSGF.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>