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

80 lines
4.5 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="Specify validity checking for replies" />
<meta name="abstract" content="On the Add Message Description (ADDMSGD) command, you can specify the type of reply that is valid for an inquiry or notify message." />
<meta name="description" content="On the Add Message Description (ADDMSGD) command, you can specify the type of reply that is valid for an inquiry or notify message." />
<meta name="DC.subject" content="message, validity checking, reply, reply to message" />
<meta name="keywords" content="message, validity checking, reply, reply to message" />
<meta name="DC.Relation" scheme="URI" content="amsgf.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="msgvalid" />
<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>Specify validity checking for replies</title>
</head>
<body id="msgvalid"><a name="msgvalid"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Specify validity checking for replies</h1>
<div><p>On the <span class="cmdname">Add Message Description (ADDMSGD)</span> command,
you can specify the type of reply that is valid for an inquiry or notify message.</p>
<div class="section"> <p>You can specify (parameters are given in parentheses): </p>
<ul><li>Type of reply (TYPE) <ul><li>Decimal (*DEC)</li>
<li>Character (*CHAR)</li>
<li>Alphabetic (*ALPHA)</li>
<li>Name (*NAME)</li>
</ul>
</li>
<li>Maximum length of reply (LEN) <ul><li>For decimal, 15 digits (9 decimal positions)</li>
<li>For character and alphabetic, 32 characters</li>
<li>For name, 10 characters</li>
</ul>
<div class="note"><span class="notetitle">Note:</span> If you do not specify any validity checking (VALUES, RANGE, REL,
SPCVAL, DFT), the maximum length of a reply is 132 characters for types *CHAR
and *ALPHA.</div>
</li>
<li>Values that can be used for the reply <ul><li>A list of values (VALUES)</li>
<li>A list of special values (SPCVAL)</li>
<li>A range of values (RANGE)</li>
<li>A simple relationship that the reply value must meet (REL)</li>
</ul>
<div class="note"><span class="notetitle">Note:</span> The special values are values that can be accepted but that do
not satisfy any other validity checking values.</div>
</li>
</ul>
<p>When a display station user enters a reply to a message, the keyboard
is in lower shift which causes lowercase characters to be entered. If your
program needs the reply to be in uppercase characters, you can do one of the
following: </p>
<ul><li>Use the SNDUSRMSG command which supports a translation table option which
defaults to converting lowercase to uppercase.</li>
<li>Require the display station user to enter uppercase characters by specifying
only uppercase characters for the VALUES parameter.</li>
<li>Specify the VALUES parameter as uppercase and use the SPCVAL parameter
to convert the corresponding lowercase characters to uppercase.</li>
<li>Use TYPE(*NAME) if the characters to be entered are all letters (A-Z).
The characters are converted to uppercase before being checked.</li>
</ul>
</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>
</body>
</html>