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

122 lines
7.8 KiB
HTML
Raw 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="concept" />
<meta name="DC.Title" content="Numeric only (Y)" />
<meta name="abstract" content="You can only type the numbers 0 through 9, plus (+), minus (-), period (.), comma (,), and space ( ) into the field. You can press any key to leave the field." />
<meta name="description" content="You can only type the numbers 0 through 9, plus (+), minus (-), period (.), comma (,), and space ( ) into the field. You can press any key to leave the field." />
<meta name="DC.Relation" scheme="URI" content="rzakcvalentries.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakcshiftn.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakcmstdfedtcd.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakcmstdfedwrd.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="dfnoy" />
<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>Numeric only (Y)</title>
</head>
<body id="dfnoy"><a name="dfnoy"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Numeric only (Y)</h1>
<div><p>You can only type the numbers 0 through 9, plus (+), minus (-),
period (.), comma (,), and space ( ) into the field. You can press any
key to leave the field.</p>
<div class="p">The display length for a numeric-only field is one more than
the program length when both of the following conditions occur (the program
length is specified in positions 30 through 34): <ul><li>The field is an unedited, input-capable field.</li>
<li>The value in positions 36 and 37 (decimal positions) is greater than zero.</li>
</ul>
</div>
<p>The extra position in the display length is for the decimal point.</p>
<div class="p">When the <span class="keyword">i5/OS™</span> operating
system passes the contents of the field to your program, the following considerations
apply: <ul><li>Your program sees a numeric, decimally aligned field.</li>
<li>To type digits to the right of the decimal, positions 36 and 37 must be
greater than zero and you must type the decimal character.</li>
<li>You cannot type the maximum number of digits, a decimal character, and
a sign character, because the display length of the field equals only the
program length plus one. You can press the Field+ key or the Field- key to
avoid typing a sign character.</li>
<li>the <span class="keyword">i5/OS</span> operating
system removes all characters except 0 through 9 (whether typed or supplied
through the EDTWRD keyword) and the sign.</li>
<li>the <span class="keyword">i5/OS</span> operating
system converts embedded blanks (hex 40) to zeros (hex F0) before decimal
alignment. (Embedded blanks are blanks between any significant digits in the
field.) Leading blanks, trailing blanks, zeros, plus signs, and minus signs
are not treated as significant digits. Embedded ampersands in an edit word
are also converted to zeros before decimal alignment.</li>
<li>All nonnumeric characters are removed before decimal alignment and validity
checking for the RANGE, COMP, CMP, VALUES, CHECK(VN), CHECK(M10), CHECK(M11),
and CHECK(VNE) keywords. Numeric characters (0 through 9) supplied by the
EDTWRD keyword are not removed. Validity checking for the CHECK(M10F) and
CHECK(M11F) keywords is performed before the nonnumeric characters are removed.</li>
<li>The field length in the input buffer is the program length.</li>
</ul>
</div>
<p>When the <span class="keyword">i5/OS</span> operating
system displays a numeric-only field, the EDTCDE or the EDTWRD keyword, if
specified, applies. You can specify EDTCDE and EDTWRD only for numeric-only
fields. The display length equals the program length plus the editing characters
from the specified edit code or edit word.</p>
<div class="p">Negative numbers are handled as follows: <ul><li>The user can type a negative number on input in one of two ways: <ul><li>Type the digits, then a minus. The minus sign (-) appears (hex 60) on
the display where it was typed in.</li>
<li>Type the digits, then press the Field- key. <p>If you do not specify CHECK(RZ)
or CHECK(RB), a brace (}) is displayed in the farthest right position. This
causes an error message to appear at the workstation if you specify decimal
positions other than zero in positions 36 and 37. If you specify CHECK(RZ)
or CHECK(RB), the digits typed in are right-aligned. No minus sign appears
in either case.</p>
<p>If you specify an EDTCDE keyword that displays a minus
sign and you do not specify CHECK(RZ) or CHECK(RB), a brace (}) is displayed
in the farthest right position. This does not cause an error message to appear
at the workstation. A minus sign appears in the farthest right position on
output.</p>
<p>If you specify an EDTCDE keyword that displays a minus sign
and you also specify CHECK(RZ) or CHECK(RB), the farthest right significant
digit is displayed as hex Dn (negative). A minus sign appears on the output.</p>
<p>When
a negative number passes to your program, the <span class="keyword">i5/OS</span> operating
system converts the farthest right significant digit from hex Fn (positive)
to hex Dn (negative), where n is the significant digit.</p>
</li>
</ul>
</li>
<li>The sign appears in the farthest right display position on output and
takes up one of the positions in the display length.</li>
</ul>
<div class="note"><span class="notetitle">Note:</span> The <span class="keyword">i5/OS</span> program
examines each character of a numeric-only field to remove the nonnumeric characters
plus sign (+), minus sign (-), comma (,), and decimal point(.) and nonsignificant
digits, and to convert embedded blanks to zeros. This examination and removal
can delay response time if a significant number of fields must be processed
on an input operation.</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakcvalentries.htm" title="The table in this topic shows a list of valid entries for display files.">Valid entries for display files</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rzakcshiftn.htm" title="To allow numeric entry, you must use uppershift for the data-entry keyboard and lowershift for the typewriter-like keyboard. All characters are valid for entry.">Numeric shift (N)</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rzakcmstdfedtcd.htm" title="Use this field-level keyword to edit output-capable numeric fields.">EDTCDE (Edit Code) keyword for display files</a></div>
<div><a href="rzakcmstdfedwrd.htm" title="Use this field-level keyword to specify an edit word if you cannot obtain the editing that you want by using the EDTCDE keyword.">EDTWRD (Edit Word) keyword for display files</a></div>
</div>
</div>
</body>
</html>