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

68 lines
4.8 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?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: Describe a message" />
<meta name="abstract" content="This example shows how to create a message to be used in an application." />
<meta name="description" content="This example shows how to create a message to be used in an application." />
<meta name="DC.subject" content="example, describing, message, ADDMSGD (Add Message Description) command, Add Message Description (ADDMSGD) command, command, CL, ADDMSGD (Add Message Description), Add Message Description (ADDMSGD), message description, adding, ADDMSGD (Add Message Description) command, DSPMSGD (Display Message Descriptions) command, Display Message Descriptions (DSPMSGD) command, DSPMSGD (Display Message Descriptions), command, CL, Display Message Descriptions (DSPMSGD), displaying" />
<meta name="keywords" content="example, describing, message, ADDMSGD (Add Message Description) command, Add Message Description (ADDMSGD) command, command, CL, ADDMSGD (Add Message Description), Add Message Description (ADDMSGD), message description, adding, ADDMSGD (Add Message Description) command, DSPMSGD (Display Message Descriptions) command, Display Message Descriptions (DSPMSGD) command, DSPMSGD (Display Message Descriptions), command, CL, Display Message Descriptions (DSPMSGD), displaying" />
<meta name="DC.Relation" scheme="URI" content="amsgf.htm" />
<meta name="DC.Relation" scheme="URI" content="msgcl.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="exdmg" />
<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: Describe a message</title>
</head>
<body id="exdmg"><a name="exdmg"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Example: Describe a message</h1>
<div><p>This example shows how to create a message to be used in an application.</p>
<div class="section"> <p>In the following example, the <span class="cmdname">Add Message Description
(ADDMSGD)</span> command creates a message to be used in applications such
as order entry. The message is issued when a customer number entered on the
display is not found. The message is: </p>
<pre> Customer number &amp;1 not found</pre>
<p>The <span class="cmdname">Add Message Description (ADDMSGD)</span> command
for this message is: </p>
<pre>ADDMSGD MSGID(USR4310) +
MSGF(QGPL/USRMSG) +
MSG('Customer number &amp;1 not found') +
SECLVL('Change customer number') +
SEV(40) +
FMT((*CHAR 8))</pre>
<p>The message is added to the USRMSG file in the library QGPL.</p>
<p>You
can use the DSPMSGD or WRKMSGD command to print or display message descriptions.</p>
<p>The
SECLVL parameter provides very simple text. To make this appear on the Additional
Message Information display, you specify <samp class="codeph">SECLVL('message text')</samp>.
The text you specify on this parameter appears on the Additional Message
Information display when you press the Help key after placing the cursor on
this message.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="amsgf.htm" title="You use the Add Message Description (ADDMSGD) command to describe your predefined messages and to add them to the message file you created.">Add messages to a file</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="msgcl.htm" title="Various message types are described in this topic. Use the Send Program Message (SNDPGMMSG) command or the Send User Message (SNDUSRMSG) command to send a message from a CL procedure or program.">Send messages from a CL program</a></div>
</div>
</div>
</body>
</html>