80 lines
5.1 KiB
HTML
80 lines
5.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="Length for printer files (positions 30 through 34)" />
|
||
|
<meta name="abstract" content="Use these positions to specify the field length for each named field (unless you copy it from a referenced field)." />
|
||
|
<meta name="description" content="Use these positions to specify the field length for each named field (unless you copy it from a referenced field)." />
|
||
|
<meta name="DC.subject" content="length positional entry" />
|
||
|
<meta name="keywords" content="length positional entry" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzakdmstposy1.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="prref.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="prtlen" />
|
||
|
<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>Length for printer files (positions 30 through 34)</title>
|
||
|
</head>
|
||
|
<body id="prtlen"><a name="prtlen"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Length for printer files (positions 30 through 34)</h1>
|
||
|
<div><p>Use these positions to specify the field length for each named
|
||
|
field (unless you copy it from a referenced field).</p>
|
||
|
<p>Your entry represents the number of bytes of data to be passed from your
|
||
|
program when an output operation is done for this field. (If the field is
|
||
|
to be edited, the associated edit code or edit word is used to determine the
|
||
|
printed length of the field.) <a href="zprint.htm#zprint__ddsex">Figure 1</a> shows
|
||
|
how to code the field length.</p>
|
||
|
<p>The maximum length of a zoned decimal field is 63. Data description specifications
|
||
|
allow a maximum field length of 32 767 characters. If the field length causes
|
||
|
the field to extend beyond the page size, a warning diagnostic appears. The
|
||
|
maximum length of a single precision floating-point field is 9 digits; the
|
||
|
maximum length of a double precision floating-point field is 17 digits.</p>
|
||
|
<p>If you use a referenced field, override the referenced
|
||
|
length by specifying a new value or by specifying the increase or decrease
|
||
|
in length. To increase the length, specify <tt>+n</tt>, where <tt>n</tt> is
|
||
|
the increase. To decrease the length, specify <tt>-n</tt>, where <tt>n</tt> is
|
||
|
the decrease. For example, an entry of +4 indicates that the field is to be
|
||
|
4 digits longer than the referenced field. The field length can be overridden
|
||
|
without overriding the decimals.</p>
|
||
|
<p>If you specify length, it must be right-aligned; leading
|
||
|
zeros are optional.</p>
|
||
|
<p>The following example shows correct and incorrect field-length specifications.
|
||
|
FIELD1 shows the field length specified incorrectly. FIELD2 and FIELD3 show
|
||
|
the field length specified correctly.</p>
|
||
|
<pre>|...+....1....+....2....+....3....+....4....+....5
|
||
|
00010A FIELD1 7
|
||
|
A
|
||
|
00020A FIELD2 7
|
||
|
A
|
||
|
00030A FIELD3 R +7</pre>
|
||
|
<p>For floating-point fields, 7 positions will be added to the length you
|
||
|
specify in positions 30 through 34. The 7 extra positions are for the significand
|
||
|
sign, the decimal point or comma, the exponent character, the exponent sign,
|
||
|
and the exponent.</p>
|
||
|
<p>In some cases, if you specify a value for length, some keywords specified
|
||
|
with the field in the database file are not included in the printer file.</p>
|
||
|
</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 class="relconcepts"><strong>Related concepts</strong><br />
|
||
|
<div><a href="prref.htm" title="Use this position to specify R in position 29 to copy the attributes of a previously defined named field (the referenced field) to the field that you are defining. (If you do not specify R, you must specify the field attributes.)">Reference for printer files (position 29)</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|