ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzakd_5.4.0.1/prtdec.htm

61 lines
4.1 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="Decimal positions for printer files (positions 36 and 37)" />
<meta name="abstract" content="Use these positions to specify the decimal placement within a zoned decimal field and the data type of the field as it appears in your program." />
<meta name="description" content="Use these positions to specify the decimal placement within a zoned decimal field and the data type of the field as it appears in your program." />
<meta name="DC.subject" content="decimal position positional entry" />
<meta name="keywords" content="decimal position positional entry" />
<meta name="DC.Relation" scheme="URI" content="rzakdmstposy1.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="prtdec" />
<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 printer files (positions 36 and 37)</title>
</head>
<body id="prtdec"><a name="prtdec"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Decimal positions for printer files (positions 36 and 37)</h1>
<div><p>Use these positions to specify the decimal placement within a zoned
decimal field and 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 assumes a data type of <tt>character</tt> for the field.</p>
<p>If you enter a number in these positions, the <span class="keyword"><font color="Purple">i5/OS</font></span> operating
system assumes a data type of <tt>zoned decimal</tt> for the
field. The number specified is the number of positions to the right of the
decimal point; it must be less than or equal to the field length, with a maximum
of 63. <a href="zprint.htm#zprint__ddsex">Figure 1</a> shows how to code decimal
positions.</p>
<p>If you use a referenced field, you do not need to specify decimal positions
because the information is retrieved from the referenced file. You can override
or change the decimal positions retrieved if you choose.</p>
<div class="p">To override the decimal positions, specify the new value. To change the
decimal positions, specify the amount by which you want to increase or decrease
the field and precede the amount with either a + or -. For example, an entry
of +4 indicates that there are 4 more digits to the right of the decimal point
than in the referenced field. <div class="note"><span class="notetitle">Note:</span> High-level languages can impose specific
length and value restrictions on the decimal positions. Observe these restrictions
for files used by those languages.</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakdmstposy1.htm" title="You can find how to specify the first 44 positions of the data description specifications form for printer files in this topic.">Positional entries for printer files (positions 1 through 44)</a></div>
</div>
</div>
</body>
</html>