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

77 lines
4.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="concept" />
<meta name="DC.Title" content="Digits only (D)" />
<meta name="abstract" content="To allow numeric entry, you must use uppershift for the data-entry keyboard and lowershift for the typewriter-like keyboard." />
<meta name="description" content="To allow numeric entry, you must use uppershift for the data-entry keyboard and lowershift for the typewriter-like keyboard." />
<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="rzakcdigitsonly" />
<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>Digits only (D)</title>
</head>
<body id="rzakcdigitsonly"><a name="rzakcdigitsonly"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Digits only (D)</h1>
<div><p>To allow numeric entry, you must use uppershift for the data-entry
keyboard and lowershift for the typewriter-like keyboard.</p>
<p>The numbers-only keyboard shift defines a character or numeric field that
allows you to key only the digits 0 through 9 into the field. You cannot key
special characters or blanks.</p>
<p>The numbers-only keyboard shift is supported only on devices that are configured
on the 6040 or 6041 local controller or the 5294 or 5394 Control Unit. When
a digits-only field is sent to a device that is not configured on a valid
controller type, the field is processed as alphanumeric (keyboard shift A).
Because you can type any alphanumeric character into the field, a decimal
data error can result in the application program.</p>
<p>The Field Exit, Field+ Exit, and Dup keys are allowed. The Field+ Exit
is processed as an unsigned Field Exit. The Field- Exit key is not allowed.</p>
<p>Blank and zero are the only supported values for decimal positions (DDS
positions 36 and 37). If positions 36 and 37 are blank, the field is considered
a character field. If you specify zero, the field is considered numeric.</p>
<p>You can only enter a positive integer value into a D field.</p>
<p>The display length of a digits-only field is always the field length as
specified in positions 30 through 34.</p>
<p>Zero suppression is not supported for digits-only fields. EDTCDE and EDTWRD
keywords are not valid, and the <span class="keyword">i5/OS™</span> operating
system does not perform zero suppression by default, as it does for signed-numeric
fields.</p>
<div class="p">You cannot enter blanks into the field. However, you can move the cursor
out of the field after entering part of it. If you move the cursor after entering
part of the field, when the <span class="keyword">i5/OS</span> operating
system passes the contents of the field to a program, the following considerations
apply: <ul><li>For a numeric field, leading blanks are converted by
the <span class="keyword">i5/OS</span> operating system
to zero, and the field is right-aligned before the programme passes the field
contents to the application program.</li>
<li>For a character field, blanks are passed to the application program as
hex 40, and the field is not right-aligned.</li>
<li>The field length in the input buffer is the program length.</li>
</ul>
</div>
<p>In a database file, you can specify the D keyboard shift on the REFSHIFT
keyword if the field data type is numeric or character (S, B, P, or A). For
a numeric field, the number of decimal positions must be zero.</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>