ibm-information-center/dist/eclipse/plugins/i5OS.ic.nls_5.4.0.1/rbagsdbcsen.htm

86 lines
6.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="DBCS coding considerations" />
<meta name="abstract" content="If the application will be used in a DBCS environment, ensure that it is DBCS-enabled. Here are some suggestions to consider when you develop the general product design." />
<meta name="description" content="If the application will be used in a DBCS environment, ensure that it is DBCS-enabled. Here are some suggestions to consider when you develop the general product design." />
<meta name="DC.Relation" scheme="URI" content="rbagsdesigndbcsapps.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagscreatefilesdesign.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagstargetphysfiledesign.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagsuseccsiddesign.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagsuseddskywrddesign.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagsdbcscodeconsid.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagskatakanacdpgdesign.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagsucs2lev1supanddisplays.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="rbagsdbcsen" />
<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 coding considerations</title>
</head>
<body id="rbagsdbcsen"><a name="rbagsdbcsen"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">DBCS coding considerations</h1>
<div><p>If the application will be used in a DBCS environment, ensure that
it is DBCS-enabled. Here are some suggestions to consider when you develop
the general product design.</p>
<ul><li>Reserve more expansion space for DBCS textual data translation than you
reserve for SBCS textual data translation. (It is possible, however, that
the number of bytes used may be reduced when a SBCS sentence is being translated
into DBCS.)</li>
<li>Ensure programs can understand shift-out and shift-in delimiters. Otherwise,
EBCDIC mixed-byte character strings cannot be handled.</li>
<li>Do not enable short responses for DBCS. For short responses, it is difficult
to shift in and out of DBCS. The <samp class="codeph">yes</samp> and <samp class="codeph">no</samp> are
examples of short responses.</li>
<li>Remember to use the graphic data type G where appropriate.</li>
<li>Remember that the 5494 remote controller supports the graphic data type.</li>
<li>Be careful when converting mixed data between DBCS-host code and DBCS-PC
code, because the transition may change the data length. Losing and gaining
SO and SI character pairs can upset field-length calculations.</li>
<li>Make sure the double-byte data is always processed in a double-byte unit.
Do not split a double-byte character.</li>
<li>Design the display as well as the print format to avoid the problem of
truncation of a double-byte character into two single-byte units.</li>
</ul>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbagscreatefilesdesign.htm">Create physical files</a></strong><br />
When you create a physical file, display file, and printer file for a DBCS environment, consider the IGCDTA parameter in these commands.</li>
<li class="ulchildlink"><strong><a href="rbagstargetphysfiledesign.htm">Target physical files</a></strong><br />
When you specify OUTPUT(*OUTFILE) with the Copy Spool File (CPYSPLF), Display Spooled File (DSPSPLF), or Work with Spooled Files (WRKSPLF) command under the DBCS version of the operating system, the target physical file must be DBCS-enabled.</li>
<li class="ulchildlink"><strong><a href="rbagsuseccsiddesign.htm">Use DBCS CCSIDs</a></strong><br />
Use DBCS CCSIDs for DBCS languages. When you design an application to be used in the DBCS environment, consider this information.</li>
<li class="ulchildlink"><strong><a href="rbagsuseddskywrddesign.htm">Use DDS keywords</a></strong><br />
With DDS keywords, you can specify alternative ways to enter data through display files, change input- and output-capable alphanumeric data fields to DBCS data fields, or specify the special features of the DBCS printer output.</li>
<li class="ulchildlink"><strong><a href="rbagsdbcscodeconsid.htm">DBCS file data types</a></strong><br />
This table summarizes the changes of the data type of a field in a physical file when the data type is being referred to in a logical file.</li>
<li class="ulchildlink"><strong><a href="rbagskatakanacdpgdesign.htm">The Katakana code page (00290)</a></strong><br />
The Katakana code page (code page 00290) of Japan supports uppercase English and single-byte Katakana (phonetics) characters.</li>
<li class="ulchildlink"><strong><a href="rbagsucs2lev1supanddisplays.htm">UCS-2 level-1 support and IBM DBCS displays</a></strong><br />
i5/OS™ supports
ISO/IEC 10646 Universal Coded Character Set 2, Level 1 (UCS-2, Level-1). IBM<sup>®</sup> DBCS-capable
display stations, however, do not support UCS-2 Level-1 data.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbagsdesigndbcsapps.htm" title="Design your application programs for processing double-byte data in the same way you design application programs for processing alphanumeric data.">Develop applications that process DBCS data</a></div>
</div>
</div>
</body>
</html>