ibm-information-center/dist/eclipse/plugins/i5OS.ic.dbp_5.4.0.1/rbafodbcsdt.htm

87 lines
5.0 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?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="DBCS field data types" />
<meta name="abstract" content="There are two general kinds of double-byte character set (DBCS) data: bracketed-DBCS data and graphic (nonbracketed) DBCS data." />
<meta name="description" content="There are two general kinds of double-byte character set (DBCS) data: bracketed-DBCS data and graphic (nonbracketed) DBCS data." />
<meta name="DC.subject" content="double-byte character set (DBCS), field, data types, DBCS (double-byte character set), data types, data types, DBCS, bracketed-DBCS data, graphic-DBCS data" />
<meta name="keywords" content="double-byte character set (DBCS), field, data types, DBCS (double-byte character set), data types, data types, DBCS, bracketed-DBCS data, graphic-DBCS data" />
<meta name="DC.Relation" scheme="URI" content="rbafoappdbcs.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbafodbcsdt" />
<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>DBCS field data types</title>
</head>
<body id="rbafodbcsdt"><a name="rbafodbcsdt"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">DBCS field data types</h1>
<div><p>There are two general kinds of double-byte character set (DBCS)
data: bracketed-DBCS data and graphic (nonbracketed) DBCS data. </p>
<p>Bracketed-DBCS data is preceded by a DBCS shift-out character and followed
by a DBCS shift-in character. Graphic-DBCS data is not surrounded by shift-out
and shift-in characters. The application program might require special processing
to handle bracketed-DBCS data that would not be required for graphic-DBCS
data.</p>
<div class="p">The specific DBCS data types (specified in position 35 on the DDS coding
form.) are: <dl><dt><strong>Entry</strong></dt>
<dd><strong>Meaning</strong></dd>
<dt class="dlterm">O</dt>
<dd>DBCS-open: A character string that contains both single-byte and bracketed
double-byte data.</dd>
<dt class="dlterm">E</dt>
<dd>DBCS-either: A character string that contains either all single-byte data
or all bracketed double-byte data.</dd>
<dt class="dlterm">J</dt>
<dd>DBCS-only: A character string that contains only bracketed double-byte
data.</dd>
<dt class="dlterm">G</dt>
<dd>DBCS-graphic: A character string that contains only nonbracketed double-byte
data.</dd>
</dl>
<div class="note"><span class="notetitle">Note:</span> Files containing DBCS data types can be created on a
single-byte character set (SBCS) system. Files containing DBCS data types
can be opened and used on a SBCS system, however, coded character set identifier
(CCSID) conversion errors can occur when the system tries to convert from
a DBCS or mixed CCSID to a SBCS CCSID. These errors do not occur
if the job CCSID is 65535.</div>
</div>
<div class="section" id="rbafodbcsdt__rbafodbcscst"><a name="rbafodbcsdt__rbafodbcscst"><!-- --></a><h4 class="sectiontitle">DBCS constants</h4><p>A constant identifies
the actual character string to be used. The character string is enclosed in
single quotation marks and a string of DBCS characters is surrounded by the
DBCS shift-out and shift-in characters (represented by the characters &lt;
and &gt; in the following examples). A DBCS-graphic constant is preceded by
the character <em>G</em>. </p>
<div class="p">The types of DBCS constants are: <dl><dt><strong>Type</strong></dt>
<dd><strong>Example</strong></dd>
<dt class="dlterm">DBCS-Only</dt>
<dd>'&lt;A1A2A3&gt;'</dd>
<dt class="dlterm">DBCS-Open</dt>
<dd>'&lt;A1A2A3&gt;BCD'</dd>
<dt class="dlterm">DBCS-Graphic</dt>
<dd>G'&lt;A1A2A3&gt;'</dd>
</dl>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafoappdbcs.htm" title="These topics describe double-byte character set (DBCS) considerations as they apply to the database on the iSeries system.">Double-byte character set considerations</a></div>
</div>
</div>
</body>
</html>