57 lines
3.4 KiB
HTML
57 lines
3.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="concept" />
|
|
<meta name="DC.Title" content="Length (positions 30 through 34)" />
|
|
<meta name="abstract" content="Specify the length of a field in these positions." />
|
|
<meta name="description" content="Specify the length of a field in these positions." />
|
|
<meta name="DC.Relation" scheme="URI" content="prtpos.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="dbclen" />
|
|
<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 (positions 30 through 34)</title>
|
|
</head>
|
|
<body id="dbclen"><a name="dbclen"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Length (positions 30 through 34)</h1>
|
|
<div><p>Specify the length of a field in these positions.</p>
|
|
<p>The length of a field containing bracketed-DBCS data can range from 4 through
|
|
32 767 bytes. The length of a DBCS-graphic field can range from 1 through
|
|
16 383 characters. However, because a field cannot span a printed
|
|
page, the maximum length of a field might not reach the maximum size.</p>
|
|
<p>When determining the length of a DBCS field, consider the
|
|
following information:</p>
|
|
<ul><li>Each DBCS character is 2 bytes long.</li>
|
|
<li>For DBCS-graphic fields, the length of the field is specified in number
|
|
of DBCS characters.</li>
|
|
<li>Include both shift-control characters in the length of the field for fields
|
|
with a data type of O. Together, these characters are 2 bytes long.</li>
|
|
</ul>
|
|
<div class="p">For example, a bracketed-DBCS field that contains up to 3 DBCS characters,
|
|
1 shift-in character and 1 shift-out character, has 8 bytes of data: <pre>(3 characters x 2 bytes) + (shift-out + shift-in) = 8</pre>
|
|
</div>
|
|
<div class="p">A DBCS-graphic field that contains up to 3 DBCS characters has 6 bytes
|
|
of data: <pre>(3 characters x 2 bytes) = 6</pre>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="prtpos.htm" title="This section describes DBCS (double-byte character set) considerations for the length, data type, and decimal positional entries on printer files. The positions that are not mentioned have no special considerations for DBCS.">Positional entry considerations for printer files that use double-byte character set</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |