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

88 lines
5.3 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="concept" />
<meta name="DC.Title" content="Signed numeric (S)" />
<meta name="abstract" content="You can only type the numbers 0 through 9 into the field (no blanks, no plus sign, no minus sign)." />
<meta name="description" content="You can only type the numbers 0 through 9 into the field (no blanks, no plus sign, no minus sign)." />
<meta name="DC.Relation" scheme="URI" content="rzakcvalentries.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="rzakcsigns" />
<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>Signed numeric (S)</title>
</head>
<body id="rzakcsigns"><a name="rzakcsigns"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Signed numeric (S)</h1>
<div><p>You can only type the numbers 0 through 9 into the field (no blanks,
no plus sign, no minus sign).</p>
<p>To leave the field, press the Field Exit key, the Field+
key, the Field- key, or a cursor movement key. If you do not type any data
into the field, you can press the Enter key.</p>
<div class="p">You should consider the following differences when you choose between signed
numeric (S) and numeric only (Y):<ul><li>Signed numeric restricts the characters that you can type into the field
to the numbers 0 through 9.</li>
<li>You cannot specify S in position 35 if you also specify the EDTCDE or
EDTWRD keyword.</li>
<li>Numeric-only performs character removal to remove nonnumeric characters;
signed numeric prevents you from typing in these characters at all.</li>
</ul>
</div>
<p>For input-capable fields only, the display length for the field is one
more than the length specified in positions 30 through 34. The farthest right
position on the display is reserved for a minus sign.</p>
<div class="p">The following considerations apply when the <span class="keyword">i5/OS™</span> operating
system passes the contents of a signed numeric field to your program: <ul><li>Your program always sees a numeric, right-aligned, zero-filled field.</li>
<li>The field is displayed as a right-aligned, blank-filled field unless you
specify CHECK(RZ). If you specify CHECK(RZ), the field is displayed as right-adjusted
and zero-filled.</li>
<li>The <span class="keyword">i5/OS</span> operating
system does not perform decimal alignment.</li>
<li>The <span class="keyword">i5/OS</span> operating
system does not remove characters from the field (as it does for numeric only
fields).</li>
</ul>
</div>
<p>When an input-capable signed numeric field displays and you do not specify
CHECK(RZ), the <span class="keyword">i5/OS</span> operating
system performs zero suppression by default (the EDTCDE and EDTWRD keywords
are not valid for signed numeric fields).</p>
<div class="p">Negative numbers are handled as follows: <ul><li>On input, you must type the number and press the Field- key. The number
is right-aligned in the displayed field with a minus sign in the farthest
right position. The <span class="keyword">i5/OS</span> operating
system converts the farthest right significant digit to hex Dn where n is
the significant digit, before passing the number to your program. For example,
if you type 12345 and press the Field- key, 12345- is displayed and your program
sees <span>X'F1F2F3F4D5'</span>.</li>
<li>On output, the <span class="keyword">i5/OS</span> operating
system converts hex D in the farthest right digit to hex F. This changes the
negative number to a positive number for display purposes and displays a minus
sign in the farthest right (additional) position in the displayed field. For
example, if your program sees <span>X'F1F2F3F4D5'</span>, the number appears on
the display as 12345-.</li>
</ul>
</div>
<p>For examples of signed numeric fields, and sample data typed into them,
see the Data Type and Keyboard Shift Coding Example in the <a href="rzakcdatel.htm">Date (L), Time (T), and Timestamp (Z)</a> topic.</p>
</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>
</body>
</html>