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

68 lines
4.1 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 character (M)" />
<meta name="abstract" content="The M keyboard shift defines a character field that allows you to type only the digits 0 through 9, plus (+), minus (-), comma (,), period (.), and blank into the field." />
<meta name="description" content="The M keyboard shift defines a character field that allows you to type only the digits 0 through 9, plus (+), minus (-), comma (,), period (.), and blank into the field." />
<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="rzakcnumericonly" />
<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 character (M)</title>
</head>
<body id="rzakcnumericonly"><a name="rzakcnumericonly"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Numeric only character (M)</h1>
<div><p>The M keyboard shift defines a character field that allows you
to type only the digits 0 through 9, plus (+), minus (-), comma (,), period
(.), and blank into the field.</p>
<div class="p">The Field Exit, Field+ Exit, Field- Exit, and Dup keys are
allowed. The Field+ Exit is processed as an unsigned Field Exit. The Field-
Exit is processed as follows: <ul><li>If you do not specify CHECK(RZ) or CHECK(RB), the farthest right position
is changed to a brace.</li>
<li>If you specify CHECK(RZ) or CHECK(RB), the last character you type into
the field must be a digit (or a keyboard error is issued). The farthest right
digit, n, is converted from hex Fn (positive) to hex Dn (negative).</li>
</ul>
</div>
<p>The display length for an M field is the length coded in positions 30 through
34. You must include any additional positions needed for a sign character
or decimal point in the field length.</p>
<p>The field displays as a blank-filled field when you do
not specify any keyword. If you specify a CHECK(RZ) keyword, the field displays
as right-aligned zero. If you specify a CHECK(RB) keyword, the field displays
as right-aligned blank filled.</p>
<div class="p">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>The program always sees a character field.</li>
<li>The field length in the input buffer is the program length.</li>
<li>The field contents are passed directly to the program. The <span class="keyword">i5/OS</span> operating
system neither converts embedded blanks to zeros nor removes nonnumeric characters,
such as sign characters and decimal points.</li>
</ul>
</div>
<p>In a database file, you can specify the M keyboard shift on the REFSHIFT
keyword if the field data type is character (A).</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>