154 lines
8.4 KiB
HTML
154 lines
8.4 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="Data type for printer files (position 35)" />
|
||
|
<meta name="abstract" content="Use this position to specify the data type associated with the field." />
|
||
|
<meta name="description" content="Use this position to specify the data type associated with the field." />
|
||
|
<meta name="DC.subject" content="data type positional entry" />
|
||
|
<meta name="keywords" content="data type positional entry" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzakdmstposy1.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="dbcdtype.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="prtdata" />
|
||
|
<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>Data type for printer files (position 35)</title>
|
||
|
</head>
|
||
|
<body id="prtdata"><a name="prtdata"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Data type for printer files (position 35)</h1>
|
||
|
<div><p>Use this position to specify the data type associated with the
|
||
|
field.</p>
|
||
|
<div class="section"><div class="p">The valid entries for this field for a printer file are:
|
||
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><thead align="left"><tr valign="bottom"><th align="left" valign="bottom" width="NaN%" class="firstcol" id="d0e27">Entry</th>
|
||
|
<th valign="bottom" width="NaN%" id="d0e29">Meaning</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody><tr><th align="left" valign="top" width="NaN%" class="firstcol" id="d0e33" headers="d0e27 ">S</th>
|
||
|
<td valign="top" width="NaN%" headers="d0e33 d0e29 ">Zoned decimal</td>
|
||
|
</tr>
|
||
|
<tr><th align="left" valign="top" width="NaN%" class="firstcol" id="d0e38" headers="d0e27 ">A</th>
|
||
|
<td valign="top" width="NaN%" headers="d0e38 d0e29 ">Character</td>
|
||
|
</tr>
|
||
|
<tr><th align="left" valign="top" width="NaN%" class="firstcol" id="d0e43" headers="d0e27 ">F</th>
|
||
|
<td valign="top" width="NaN%" headers="d0e43 d0e29 ">Floating point</td>
|
||
|
</tr>
|
||
|
<tr><th align="left" valign="top" width="NaN%" class="firstcol" id="d0e48" headers="d0e27 ">L</th>
|
||
|
<td valign="top" width="NaN%" headers="d0e48 d0e29 ">Date</td>
|
||
|
</tr>
|
||
|
<tr><th align="left" valign="top" width="NaN%" class="firstcol" id="d0e53" headers="d0e27 ">T</th>
|
||
|
<td valign="top" width="NaN%" headers="d0e53 d0e29 ">Time</td>
|
||
|
</tr>
|
||
|
<tr><th align="left" valign="top" width="NaN%" class="firstcol" id="d0e58" headers="d0e27 ">Z</th>
|
||
|
<td valign="top" width="NaN%" headers="d0e58 d0e29 ">Timestamp</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="note"><span class="notetitle">Note:</span> The O (open) and G (graphic) support DDS
|
||
|
printer files that use double-byte character set (DBCS). The G (graphic) data
|
||
|
type also supports DDS printer files that use UTF-16 and UCS-2.</div>
|
||
|
<p><a href="zprint.htm#zprint__ddsex">Figure 1</a> shows how to code the data type.</p>
|
||
|
<div class="p">If
|
||
|
you do not specify a data type and do not duplicate one from a referenced
|
||
|
field, the <span class="keyword"><font color="Purple">i5/OS™</font></span> operating
|
||
|
system assigns a default value as follows: <ul><li>A (character) if the decimal positions (36 and 37) are blank</li>
|
||
|
<li>S (zoned decimal) if the decimal positions (36 and 37) contain a number
|
||
|
in the range 0 through 63</li>
|
||
|
</ul>
|
||
|
<div class="note"><span class="notetitle">Notes:</span> <ol><li>Specify 0 in position 37 to indicate an integer numeric field.</li>
|
||
|
<li>Specify F in position 35 for a single precision floating-point field.
|
||
|
Use the FLTPCN keyword to specify double precision or to change the precision
|
||
|
of an already specified floating-point field.</li>
|
||
|
<li>A floating-point value consists of five parts: (a) the significand sign,
|
||
|
(b) the significand, (c) the exponent character (d) the exponent sign, and
|
||
|
(e) the exponent. <p>The significand sign is not printed for a positive value.
|
||
|
The number of digits in the significand is determined by the length specified
|
||
|
(positions 30 through 34). The location of the decimal point or the comma
|
||
|
is determined by the decimal positions specified (positions 36 and 37). The
|
||
|
exponent character and the exponent sign are always printed. The exponent
|
||
|
is always 3 digits.</p>
|
||
|
<p>The printed length for a floating-point field is
|
||
|
7 positions greater than the length specified in positions 30 through 34.
|
||
|
The 7 extra positions are for (a) the significand sign, (b) the decimal point
|
||
|
or comma, (c) the exponent character, (d) the exponent sign, and (e) the 3
|
||
|
exponent digits.</p>
|
||
|
</li>
|
||
|
<li>Date, Time, and Timestamp restrictions: <div class="p">The field length (*DDS positions
|
||
|
30 and 34) for these data types must be blank. The field length is determined
|
||
|
by the following rules: <ul><li>For Date (L), the format specified on the DATFMT keyword dictates the
|
||
|
length of the field. If the DATFMT keyword is not specified, then the format
|
||
|
is set to *ISO as default, which has a field length of 10.</li>
|
||
|
<li>For Time (T), the format specified on the TIMFMT keyword dictates the
|
||
|
length of the field. All formats for the TIMFMT keyword, including the default
|
||
|
of *ISO when TIMFMT is not specified, has a field length of 8.</li>
|
||
|
<li>For Timestamp (Z), the field length is 26.</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<p>Fields that specify these data types are treated as alphanumeric
|
||
|
data when printed. It is up to the application program to provide the data
|
||
|
in the correct format and length according to the data type and keywords specified
|
||
|
for these fields.</p>
|
||
|
<p>Blank is the only supported value for decimal positions
|
||
|
(DDS positions 36 and 37).</p>
|
||
|
<p>Zero suppression is not supported for these
|
||
|
data types. EDTCDE and EDTWRD keywords are not valid and the <span class="keyword"><font color="Purple">i5/OS</font></span> operating system does not perform
|
||
|
zero suppression by default as it does for signed-numeric fields.</p>
|
||
|
<p>The
|
||
|
following field level keywords are not allowed with these data types.</p>
|
||
|
|
||
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="90%" frame="void" border="0" rules="none"><tbody><tr><td align="left" valign="top" width="50%">BARCODE</td>
|
||
|
<td align="left" valign="top" width="50%">FLTFIXDEC</td>
|
||
|
</tr>
|
||
|
<tr><td align="left" valign="top" width="50%">BLKFOLD</td>
|
||
|
<td align="left" valign="top" width="50%">FLTPCN</td>
|
||
|
</tr>
|
||
|
<tr><td align="left" valign="top" width="50%">DATE</td>
|
||
|
<td align="left" valign="top" width="50%">IGCCDEFNT</td>
|
||
|
</tr>
|
||
|
<tr><td align="left" valign="top" width="50%">DFT</td>
|
||
|
<td align="left" valign="top" width="50%">IGCCHRRTT</td>
|
||
|
</tr>
|
||
|
<tr><td align="left" valign="top" width="50%">EDTCDE</td>
|
||
|
<td align="left" valign="top" width="50%">MSGCON</td>
|
||
|
</tr>
|
||
|
<tr><td align="left" valign="top" width="50%">EDTWRD</td>
|
||
|
<td align="left" valign="top" width="50%">PAGNBR</td>
|
||
|
</tr>
|
||
|
<tr><td valign="top" width="50%"> </td>
|
||
|
<td align="left" valign="top">TIME</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
</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 class="relconcepts"><strong>Related concepts</strong><br />
|
||
|
<div><a href="dbcdtype.htm" title="Type an O in this position to make a field a DBCS-open field.">Data type or keyboard shift (position 35)</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|