ibm-information-center/dist/eclipse/plugins/i5OS.ic.rbam6_5.4.0.1/exomf.htm

84 lines
5.0 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="task" />
<meta name="DC.Title" content="Example: Override a message file" />
<meta name="abstract" content="This example shows how to change a message used in a job." />
<meta name="description" content="This example shows how to change a message used in a job." />
<meta name="DC.subject" content="example, overriding message file, CHGMSGD (Change Message Description) command, Change Message Description (CHGMSGD) command, command, CL, CHGMSGD (Change Message Description), Change Message Description (CHGMSGD), message description, changing" />
<meta name="keywords" content="example, overriding message file, CHGMSGD (Change Message Description) command, Change Message Description (CHGMSGD) command, command, CL, CHGMSGD (Change Message Description), Change Message Description (CHGMSGD), message description, changing" />
<meta name="DC.Relation" scheme="URI" content="omsgf.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="exomf" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Example: Override a message file</title>
</head>
<body id="exomf"><a name="exomf"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Example: Override a message file</h1>
<div><p>This example shows how to change a message used in a job.</p>
<div class="section"> <p>Assume that you want to change an IBM-supplied message for use
in a job. For example, suppose you want to change message CPC2191, which says:
</p>
<pre>Object XXX in YYY type *ZZZ deleted</pre>
<p>to say: </p>
<pre>Object XXX in YYY deleted</pre>
<p>Specifics on how to describe the FMT parameter are provided
by displaying the detailed description of CPC2191.</p>
<p>First, you create
a message file: </p>
<pre>CRTMSGF MSGF(USRMSG/OVRCPF)</pre>
<p>Then you use the message CPC2191 as a basis for your message
and add it to the message file: </p>
<pre>ADDMSGD MSGID(CPC2191) MSGF(USRMSG/OVRCPF) +
MSG('Object &amp;1 in &amp;2 deleted') +
SEV(00) FMT((*CHAR 10) (*CHAR 10))</pre>
<p>You then use the <span class="cmdname">Override Message File (OVRMSGF)</span> command
to override the message file when you run the job: </p>
<pre>OVRMSGF MSGF(QCPFMSG) TOMSGF(USRMSG/OVRCPF)</pre>
<br /><img src="rbafn537.gif" alt="You then use the OVRMSGF command to override the message file when you run the job: OVRMSGF MSGF(QCPFMSG) TOMSGF(USRMSG/OVRCPF)." /><br /> <p>If you want to change this
message for use in all your jobs, you can use the <span class="cmdname">Change Message
Description (CHGMSGD</span>) command to change the message. Then you do
not have to override the system message file.</p>
<p>If you use the <span class="cmdname">Change
Message Description (CHGMSGD</span> command to change an IBM-supplied message,
the message will need to be changed again when a new release of the system
is installed. To change the message again, you can place any changes in an
input stream or a program that can be run at any time.</p>
<p>You can also
override overriding files. For example, you can specify the following <span class="cmdname">Override
Message File (OVRMSGF)</span> commands during a job. </p>
<pre>OVRMSGF MSGF(MSGFILE1) TOMSGF(MSGFILE2)
OVRMSGF MSGF(MSGFILE2) TOMSGF(MSGFILE3)</pre>
<p>First, file MSGFILE1 was overridden with MSGFILE2. Second,
MSGFILE2 was overridden with MSGFILE3. When a message is sent, the files are
searched in this order: </p>
<ol><li>MSGFILE3</li>
<li>MSGFILE2</li>
<li>MSGFILE1</li>
</ol>
<p>You can prevent message files from being overridden. To do so, you
must specify the SECURE parameter on the <span class="cmdname">Override Message File (OVRMSGF)</span> command.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="omsgf.htm" title="You can override message files used in a procedure or program.">Override message files</a></div>
</div>
</div>
</body>
</html>