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

179 lines
7.2 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>Override Message File (OVRMSGF)</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="OVRMSGF.Top_Of_Page"></a>
<h2>Override Message File (OVRMSGF)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>Conditional
</td>
<td valign="top" align="right">
<a href="#OVRMSGF.PARAMETERS.TABLE">Parameters</a><br>
<a href="#OVRMSGF.COMMAND.EXAMPLES">Examples</a><br>
<a href="#OVRMSGF.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="OVRMSGF"></a>
<p>The Override with Message File (OVRMSGF) command overrides a message file used in a program. The overriding message file is used (specified in the TOMSGF parameter) whenever a message is sent or retrieved and the overridden message file is specified.
</p>
<p>The overriding message file need not contain all the messages that the overridden file contains. When a message is received or retrieved and the message identifier cannot be found in the overriding message file, the overridden message file is searched for the identifier. Overriding message files can be overridden, resulting in a chain of overrides. This chain of overrides provides a list of message files that are searched when a message is received or retrieved. Up to 30 message file overrides can be specified in a program.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>In a multithreaded job, this command may only be issued from the initial thread.
</li>
<li>In a multithreaded job, this command will only affect message file references performed in the initial thread. Message file references performed in secondary threads will be unaffected.
</li>
</ul>
<p>More information on overriding files is in the Files and file systems topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter, the Application Display Programming book, SC41-5715, and the Basic Printing information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p>
<b>Note: </b>Using this command does not cause a file to be overridden immediately. Information provided on this command is stored until the file is used, at which time the file is overridden.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#OVRMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="OVRMSGF.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="#OVRMSGF.MSGF"><b>MSGF</b></a></td>
<td valign="top">Message file being overridden</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Required, Positional 1</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#OVRMSGF.TOMSGF"><b>TOMSGF</b></a></td>
<td valign="top">Overriding to message file</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Required, Positional 2</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Overriding to 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>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top"><a href="#OVRMSGF.SECURE"><b>SECURE</b></a></td>
<td valign="top">Secure from other overrides</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#OVRMSGF.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="OVRMSGF.MSGF"></a>
<h3>Message file being overridden (MSGF)</h3>
<p>Specifies the message file being used by the program to which this override command is applied.
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the message file.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#OVRMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="OVRMSGF.TOMSGF"></a>
<h3>Overriding to message file (TOMSGF)</h3>
<p>Specifies the message file that is used instead of the message file specified in the <b>Message file being overridden (MSGF)</b> parameter; or, if the names are the same, specifies that the value specified in the <b>Secure from other overrides (SECURE)</b> parameter is used for the message file.
</p>
<p>This is a required parameter.
</p>
<p><b>Qualifier 1: Overriding to message file</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the message file that is used instead of of the overridden message file.
</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 used to locate the message file. If no library is specified as the current library for the job, QGPL is used.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the library where the message file is located.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#OVRMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="OVRMSGF.SECURE"></a>
<h3>Secure from other overrides (SECURE)</h3>
<p>Specifies whether this file is secured from the effects of message file override commands used in earlier calls. If this parameter is not specified, processing occurs as if *NO had been specified.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>This message file is not protected from other file overrides. Its values can be overridden by the effects of any message file overrides used in earlier calls.
</dd>
<dt><b>*YES</b></dt>
<dd>This message file is protected from the effects of any message file overrides used in earlier calls.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#OVRMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="OVRMSGF.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
OVRMSGF MSGF(WSUSRMSG) TOMSGF(ORDENTMSGD)
</pre>
</p>
<p>This override command causes the defaults for messages stored in ORDENTMSGD to be used instead of defaults stored in WSUSRMSG (which contains messages designed for work station users). As a result of this command, the messages received by the order entry users are tailored to their own environment.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#OVRMSGF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="OVRMSGF.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF180C</b></dt>
<dd>Function &amp;1 not allowed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#OVRMSGF.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>