ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzakc_5.4.0.1/rzakcmstdfchkme.htm

95 lines
5.8 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="reference" />
<meta name="DC.Title" content="CHKMSGID (Check Message Identifier) keyword for display files" />
<meta name="abstract" content="Use this field-level keyword to identify an error message that is issued when a validity check error is detected." />
<meta name="description" content="Use this field-level keyword to identify an error message that is issued when a validity check error is detected." />
<meta name="DC.subject" content="CHKMSGID (Check Message Identifier) keyword, Check Message Identifier (CHKMSGID) keyword" />
<meta name="keywords" content="CHKMSGID (Check Message Identifier) keyword, Check Message Identifier (CHKMSGID) keyword" />
<meta name="DC.Relation" scheme="URI" content="rzakcmstkeyent.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakcmstdfval.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzakcmstdfchkme" />
<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>CHKMSGID (Check Message Identifier) keyword for display files</title>
</head>
<body id="rzakcmstdfchkme"><a name="rzakcmstdfchkme"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">CHKMSGID (Check Message Identifier) keyword for display files</h1>
<div><p>Use this field-level keyword to identify an error message that
is issued when a validity check error is detected.</p>
<div class="section"><p>If you do not specify the CHKMSGID keyword, the system supplies
a message. You specify the associated validity checking rules on a CHECK(M10),
CHECK(M11), CHECK(VN), CHECK(VNE), CMP, COMP, RANGE, or VALUES keyword.</p>
<p>The
format of the keyword is:</p>
<pre>CHKMSGID(message-id [library/]message-file [&amp;message-data-field])</pre>
<p>The
message-ID parameter specifies the message description that contains the text
to be displayed on the message line.</p>
<p>The message-file and library parameters
identify the message file containing the message descriptions. The library
name is optional. If it is not specified, the library list (*LIBL) that is
in effect at run time is used to search for the message file.</p>
<p>The message-data-field
parameter specifies the name of the field that contains the message replacement
text to be displayed on the message line. The format of the message-data-field
parameter is &amp;field-name where field-name is the name of the field containing
the message replacement text. The field name must exist in the record format,
and the field must be defined as a character field (data type A) with usage
P.</p>
<p>CHKMSGID is allowed only on fields which also contain a CHECK(M10),
CHECK(M11), CHECK(VN), CHECK(VNE), CMP, COMP, RANGE, or VALUES keyword. The
field must be input-capable (usage B or I).</p>
<p>Option indicators are not
valid for this keyword.</p>
</div>
<div class="example"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify
the CHKMSGID keyword.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A MSGLOC(20)
00020A R RECORD1
00030A FIELD1 10A B 4 2CHECK(VN) CHKMSGID(USR1234 +
00040A QGPL/USRMSGS &amp;MSGFLD1);
00050A MSGFLD1 12A P
00060A FIELD2 1A I 4 20VALUES('A' 'B' 'I')
00070A CHKMSGID(XYZ9999 APPLMSGS)
00080A FIELD3 3S OB 4 25RANGE(023 199)
A</pre>
<p>When RECORD1 is read from the display screen:</p>
<ul><li>If FIELD1 does not contain a valid name, message USR1234 from the message
file USRMSGS in library QGPL with the replacement text specified in MSGFLD1
is displayed on line 20.</li>
<li>If the data entered into FIELD2 is not the letter A, B, or I, message
XYZ9999 from *LIBL/APPLMSGS is displayed on line 20.</li>
<li>If the data entered into FIELD3 is less than 023 or greater than 199,
the system-supplied message CPF5224 (value for the field is not in a valid
range) is displayed on line 20 since the CHKMSGID keyword is not specified.</li>
</ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakcmstkeyent.htm" title="You type the keyword entries that define display files in positions 45 through 80 (functions).">DDS keyword entries for display files (positions 45 through 80)</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rzakcmstdfval.htm" title="Use this field-level keyword to specify a list of values that are valid for the user to type into the field.">VALUES (Values) keyword for display files</a></div>
</div>
</div>
</body>
</html>