121 lines
6.5 KiB
HTML
121 lines
6.5 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="reference" />
|
|||
|
<meta name="DC.Title" content="Length for ICF files (positions 30 through 34)" />
|
|||
|
<meta name="abstract" content="Specify the field length for each field (unless you copy the field's attributes from a referenced field)." />
|
|||
|
<meta name="description" content="Specify the field length for each field (unless you copy the field's attributes 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="cmnfl.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="icflen" />
|
|||
|
<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 ICF files (positions 30 through 34)</title>
|
|||
|
</head>
|
|||
|
<body id="icflen"><a name="icflen"><!-- --></a>
|
|||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|||
|
<h1 class="topictitle1">Length for ICF files (positions 30 through 34)</h1>
|
|||
|
<div><p>Specify the field length for each field (unless you copy the field's
|
|||
|
attributes from a referenced field).</p>
|
|||
|
<div class="section"><p>Specify the number of digits for a numeric field,
|
|||
|
or the number of characters for a character field. The length specification
|
|||
|
must be right-aligned; leading zeros are optional. Valid length specifications
|
|||
|
for ICF files are as follows:</p>
|
|||
|
|
|||
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="void" border="0" rules="none"><thead align="left"><tr><th align="left" valign="bottom" id="d0e24">Data type</th>
|
|||
|
<th align="left" valign="bottom" id="d0e26">Valid length</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody><tr><td align="left" valign="top" headers="d0e24 ">Character</td>
|
|||
|
<td align="left" valign="top" headers="d0e26 ">1 through 32 767</td>
|
|||
|
</tr>
|
|||
|
<tr><td align="left" valign="top" headers="d0e24 ">Binary</td>
|
|||
|
<td align="left" valign="top" headers="d0e26 ">1 through 9</td>
|
|||
|
</tr>
|
|||
|
<tr><td align="left" valign="top" headers="d0e24 ">Zoned decimal</td>
|
|||
|
<td align="left" valign="top" headers="d0e26 ">1 through 31</td>
|
|||
|
</tr>
|
|||
|
<tr><td align="left" valign="top" headers="d0e24 ">Packed decimal</td>
|
|||
|
<td align="left" valign="top" headers="d0e26 ">1 through 31</td>
|
|||
|
</tr>
|
|||
|
<tr><td align="left" valign="top" headers="d0e24 ">Floating-point single precision</td>
|
|||
|
<td align="left" valign="top" headers="d0e26 ">1 through 9</td>
|
|||
|
</tr>
|
|||
|
<tr><td align="left" valign="top" headers="d0e24 ">Floating-point double precision</td>
|
|||
|
<td align="left" valign="top" headers="d0e26 ">1 through 17</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
</div>
|
|||
|
<p>You can specify a maximum of 9 digits for
|
|||
|
single precision and 17 digits for double precision. However, the <span class="keyword">i5/OS™</span> operating system supports
|
|||
|
a floating-point accuracy of 7 digits for single precision and 15 digits for
|
|||
|
double precision.</p>
|
|||
|
<p>The sum of the number of bytes occupied by all fields
|
|||
|
in a record must not exceed 32 767 for ICF files. The system determines
|
|||
|
the number of bytes actually occupied as follows:</p>
|
|||
|
|
|||
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="void" border="0" rules="none"><thead align="left"><tr><th valign="top" width="50%" id="d0e73">Data type</th>
|
|||
|
<th valign="top" width="50%" id="d0e75">Bytes occupied in storage</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody><tr><td valign="top" width="50%" headers="d0e73 ">Character</td>
|
|||
|
<td valign="top" width="50%" headers="d0e75 ">Number of characters</td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="50%" headers="d0e73 ">Binary</td>
|
|||
|
<td valign="top" width="50%" headers="d0e75 "> </td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="50%" headers="d0e73 "> 1-4 digits</td>
|
|||
|
<td valign="top" width="50%" headers="d0e75 ">2 bytes</td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="50%" headers="d0e73 "> 5-9 digits</td>
|
|||
|
<td valign="top" width="50%" headers="d0e75 ">4 bytes</td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="50%" headers="d0e73 ">Zoned decimal</td>
|
|||
|
<td valign="top" width="50%" headers="d0e75 ">Number of digits</td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="50%" headers="d0e73 ">Packed decimal</td>
|
|||
|
<td valign="top" width="50%" headers="d0e75 ">(Number of digits/2) + 1 (truncated if fractional)</td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="50%" headers="d0e73 ">Floating-point (single precision)</td>
|
|||
|
<td valign="top" width="50%" headers="d0e75 ">4 bytes</td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="50%" headers="d0e73 ">Floating-point (double precision)</td>
|
|||
|
<td valign="top" width="50%" headers="d0e75 ">8 bytes</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
</div>
|
|||
|
<p>If you are using a referenced field, you can override the length
|
|||
|
of the field by specifying a new value or by specifying the increase or decrease
|
|||
|
in length. To increase the length, specify +n where n is the increase. To
|
|||
|
decrease the length, specify -n, where n is the decrease. For example, an
|
|||
|
entry of +4 for a numeric field indicates that it is to be 4 digits longer
|
|||
|
than the referenced field. </p>
|
|||
|
<div class="note"><span class="notetitle">Note:</span> High-level languages can impose specific
|
|||
|
length and value restrictions on the field length. 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="cmnfl.htm" title="Here are some rules and examples for filling in positions 1 through 44 of the data description specifications (DDS) form.">Define an ICF file using DDS</a></div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</body>
|
|||
|
</html>
|