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

71 lines
4.7 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="Decimal positions for display files (positions 36 and 37)" />
<meta name="abstract" content="You use these positions to specify the decimal placement within a zoned decimal field and also to specify the data type of the field as it appears in your program." />
<meta name="description" content="You use these positions to specify the decimal placement within a zoned decimal field and also to specify the data type of the field as it appears in your program." />
<meta name="DC.subject" content="decimal positional entry" />
<meta name="keywords" content="decimal positional entry" />
<meta name="DC.Relation" scheme="URI" content="rzakcmstpsnent.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakcmstdfdt.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="pos3637" />
<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>Decimal positions for display files (positions 36 and 37)</title>
</head>
<body id="pos3637"><a name="pos3637"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Decimal positions for display files (positions 36 and 37)</h1>
<div><p>You use these positions to specify the decimal placement within
a zoned decimal field and also to specify the data type of the field as it
appears in your program.</p>
<p>If you leave these positions blank, the <span class="keyword">i5/OS™</span> operating
system assigns a data type of character for the field. If you type in a number
in these positions, the <span class="keyword">i5/OS</span> operating
system assigns a data type of zoned decimal for the field. The number you
specify is the number of positions to the right of the decimal point. The
entry must be less than or equal to the field length, with a maximum of 63
positions.</p>
<div class="p">Packed decimal and binary fields are not supported for display files. Therefore,
when you refer to fields of these types using the reference function, the
data type assigned is zoned decimal with a keyboard shift as follows: <ul><li>If editing is in effect for the field you are defining, the keyboard shift
is numeric only (Y in position 35).</li>
<li>If no editing is in effect for the field you are defining, the keyboard
shift is signed numeric (S in position 35).</li>
</ul>
</div>
<p>If you are using a referenced field, you can override or change these positions.
Specify the new value to override decimal positions. To change decimal positions,
specify the amount you want the field increased or decreased and precede that
number with either a plus (+) or minus (-) sign. For example, an entry of
+4 indicates four more digits to the right of the decimal point than in the
referenced field.</p>
<p>The Data type and keyboard shift coding
example in the <a href="rzakcdatel.htm">Date (L), Time (T), and Timestamp (Z)</a> topic shows how to specify
the decimal positions field.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakcmstpsnent.htm" title="Use this information to specify the first 44 positions of the data description specifications (DDS) form for display files.">Positional entries for display files (positions 1 through 44)</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rzakcmstdfdt.htm" title="The entry you make in position 35 is the data type/keyboard shift attribute for display files.">Data type/keyboard shift for display files (position 35)</a></div>
</div>
</div>
</body>
</html>