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

106 lines
7.6 KiB
HTML
Raw 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="Recommendations and guidelines for using CCSIDs" />
<meta name="abstract" content="These recommendations are useful when writing globalized applications." />
<meta name="description" content="These recommendations are useful when writing globalized applications." />
<meta name="DC.Relation" scheme="URI" content="rbagscdra.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagsobjlev65534and65535.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagslngidsdefaultccsids.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagsqicsuse.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagsnatlangkeybrdtype.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagschardataconvers.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="rbagsccsidgenrecom" />
<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>Recommendations and guidelines for using CCSIDs</title>
</head>
<body id="rbagsccsidgenrecom"><a name="rbagsccsidgenrecom"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Recommendations and guidelines for using CCSIDs</h1>
<div><p>These recommendations are useful when writing globalized applications.</p>
<ul><li>Because the system is included with a default CCSID of 65535, character
data conversions do not normally occur in applications. You should look over
the CCSID information in this topic, however, because the system might need
to participate in a multilingual environment, a network, or exchanging data
at a later time.</li>
<li>Applications implementing their own mapping scheme should use CCSID 65535,
where a CCSID assignment is necessary. For example, depending on what an application
does, it might need to use CCSID 65535 for the files, or it might need to
use CCSID 65535 for the jobs. Because other applications may require CCSIDs
other than 65535, consider changing such applications by replacing the mapping
scheme with CCSID support.</li>
<li>Correctly define fields based on their usage. If fields contain application-dependent
values (for example, control characters or fields that are not used as real
character fields), define the fields as hexadecimal data or character fields
with CCSID 65535.</li>
<li>Avoid using characters that are not in the invariant character set for
names and literals in programs.</li>
</ul>
<p>Follow these guidelines when using CCSIDs:</p>
<ul><li>Use CCSIDs in multilingual applications to maintain character integrity
in database files, displays, and printed data.</li>
<li>You can find a suggested CCSID for a language in Language identifiers
and associated default CCSIDs.</li>
<li>If the QIGC system value is set on, set QCCSID as a mixed CCSID or 65535.
For more information about QIGC, see DBCS system indicator (QIGC) system value.</li>
<li>If you use DBCS support, set the job CCSID to a mixed CCSID. If you do
not, set the job CCSID to a single-byte CCSID.</li>
<li>Ensure that the QCHRID code page is compatible with the character set
and code page of the QCCSID value, unless the QCCSID value is 65535. If the
QCCSID value is changed to a value that is incompatible with the current QCHRID
value, the QCHRID value is changed to a compatible value by the system.</li>
<li>If you use a user-defined data stream (UDDS), remove any X'3F' values
inserted by CCSID conversions. Otherwise, your data can cause the system to
blank out a screen. Some CCSID conversions use a X'3F' value for a substitution
character.</li>
<li>If you are using any interactive jobs, such as Application Development
ToolSet/400, ensure that the code page of the job CCSID matches the code page
of the keyboard type. If these CCSID values do not match, or the job CCSID
is 65535, unpredictable results might occur. For more information, see National
language keyboard types and SBCS code pages.</li>
<li>Be aware that the *JOBCCSID support is not used by any system-supplied
displays or panel groups, although CHRIDCTL support is used.</li>
<li>Be aware of character data that has been defined or specified as control
information. For new database files, fields that contain control information
should be defined as hexadecimal data type or use CCSID 65535 instead of another
CCSID.</li>
<li>Because of workstation hardware restrictions, you might not see all of
the characters on displays other than 3486, 3487, 3488, or Personal System/2
(PS/2<sup>®</sup>)
displays when CCSID conversion occurs. However, the character data is retained
in the system.</li>
<li>Be aware that when a CCSID conversion is performed, substitution characters
might cause a loss of data. The situation occurs if enforced
subset match conversion is performed (see Conversion of character data).</li>
</ul>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbagscdra.htm" title="Using the server implementation of CDRA, you can achieve consistent representation, processing, and interchange of coded characters (data) on i5/OS and across IBM systems. The primary implementation of CDRA on i5/OS is through coded character set identifier (CCSID) support.">Work with CCSIDs</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rbagsobjlev65534and65535.htm" title="CCSID 65535 is the default object-level CCSID for message files and message queues.">Object-level coded character set identifier 65535</a></div>
<div><a href="rbagslngidsdefaultccsids.htm" title="This table shows the language identifiers and the job default CCSID (DFTCCSID) values associated with those identifiers.">Language identifiers and associated default CCSIDs</a></div>
<div><a href="rbagsqicsuse.htm" title="The DBCS system indicator (QIGC) is used to specify whether a double-byte character set (DBCS) national language version is installed. This value is set when the primary national language version is installed.">DBCS system indicator (QIGC) system value</a></div>
<div><a href="rbagsnatlangkeybrdtype.htm" title="This table lists the keyboard types and code pages for each national language supported by the system. The Create Device Display (CRTDEVDSP) command uses the KBDTYPE parameter.">National language keyboard types and SBCS code pages</a></div>
<div><a href="rbagschardataconvers.htm" title="The Character Data Representation Architecture (CDRA) system of tags ensures that you can convert character data in a predictable, repeatable way.">Conversion of character data</a></div>
</div>
</div>
</body>
</html>