104 lines
5.8 KiB
HTML
104 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="COMP (Comparison) keyword for display files" />
|
|
<meta name="abstract" content="Use this field-level keyword to specify that the i5/OS operating system is to compare the data that the workstation user types into an input or input/output field with the specified value." />
|
|
<meta name="description" content="Use this field-level keyword to specify that the i5/OS operating system is to compare the data that the workstation user types into an input or input/output field with the specified value." />
|
|
<meta name="DC.subject" content="COMP (Comparison) keyword" />
|
|
<meta name="keywords" content="COMP (Comparison) keyword" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzakcmstkeyent.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzakcmstdfcmp.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="rzakcmstdfcomp" />
|
|
<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>COMP (Comparison) keyword for display files</title>
|
|
</head>
|
|
<body id="rzakcmstdfcomp"><a name="rzakcmstdfcomp"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">COMP (Comparison) keyword for display files</h1>
|
|
<div><p>Use this field-level keyword to specify that the <span class="keyword">i5/OS™</span> operating
|
|
system is to compare the data that the workstation user types into an input
|
|
or input/output field with the specified value.</p>
|
|
<div class="section"><p>The relational operator is the criterion for the comparison. If
|
|
the data typed in this field fails this validity check, the <span class="keyword">i5/OS</span> operating
|
|
system displays an error message. Note that the <span class="keyword">i5/OS</span> operating
|
|
system performs this checking only if the field is changed by the workstation
|
|
user or if its modified data tag (MDT) is set on using DSPATR(MDT).</p>
|
|
<div class="note"><span class="notetitle">Note:</span> See
|
|
the <a href="rzakcmstdfchkme.htm">CHKMSGID (Check Message Identifier) keyword for display files</a> for information
|
|
about defining user-specified error messages.</div>
|
|
<p>The format of the keyword
|
|
is:</p>
|
|
<pre>COMP(relational-operator value)</pre>
|
|
<p>You can specify
|
|
only one operation for the COMP keyword and only one COMP keyword for a field.</p>
|
|
<p>The
|
|
valid entries for the relational operator are:</p>
|
|
<dl><dt><strong>Relational operator</strong></dt>
|
|
<dd><strong>Meaning</strong></dd>
|
|
<dt class="dlterm">EQ</dt>
|
|
<dd>Equal</dd>
|
|
<dt class="dlterm">NE</dt>
|
|
<dd>Not equal</dd>
|
|
<dt class="dlterm">LT</dt>
|
|
<dd>Less than</dd>
|
|
<dt class="dlterm">NL</dt>
|
|
<dd>Not less than</dd>
|
|
<dt class="dlterm">GT</dt>
|
|
<dd>Greater than</dd>
|
|
<dt class="dlterm">NG</dt>
|
|
<dd>Not greater than</dd>
|
|
<dt class="dlterm">LE</dt>
|
|
<dd>Less than or equal</dd>
|
|
<dt class="dlterm">GE</dt>
|
|
<dd>Greater than or equal</dd>
|
|
</dl>
|
|
<p>The specified value must be either numeric or character,
|
|
depending on the data type (decimal positions entry). Numeric values are expressed
|
|
by the digits 0 through 9 and a leading sign (+ or -). Character values must
|
|
be enclosed in single quotation marks.</p>
|
|
<div class="note"><span class="notetitle">Note:</span> If the field you are defining is numeric,
|
|
alignment is based on the decimal positions specified (in positions 36 and
|
|
37), and leading and trailing blanks are filled with zeros. If no decimal
|
|
point is typed in, the decimal point is assumed to be to the right of the
|
|
last (farthest right) digit. For example, for a numeric field with a length
|
|
of 5 (specified in position 34) and 2 decimal positions (specified in position
|
|
37), 1.2 is interpreted as 001.20, and 100 is interpreted as 100.00.</div>
|
|
<p>You
|
|
cannot specify the COMP keyword on a floating-point field (F in position 35).</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 COMP keyword.</p>
|
|
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
|
|
00010A FIELD2 6 OI 10 10COMP(EQ +021920)
|
|
00020A FIELD1 3 I 11 11COMP(EQ 'ABC')
|
|
A</pre>
|
|
</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="rzakcmstdfcmp.htm" title="This keyword is equivalent to the COMP keyword.">CMP (Comparison) keyword for display files</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |