ibm-information-center/dist/eclipse/plugins/i5OS.ic.dm_5.4.0.1/rbal3ucs2.htm

80 lines
5.5 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="copyright" content="(C) Copyright IBM Corporation 2005" />
<meta name="DC.rights.owner" content="(C) Copyright IBM Corporation 2005" />
<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="Convert universal coded character set (UCS-2) graphic fields" />
<meta name="abstract" content="You use FMTOPT(*MAP) to convert universal coded character set (UCS-2) graphic fields." />
<meta name="description" content="You use FMTOPT(*MAP) to convert universal coded character set (UCS-2) graphic fields." />
<meta name="DC.subject" content="UCS-2, universal coded character set, UCS-2 graphic field, converting, copying, UCS-2 graphic field, UCS-2 graphic field" />
<meta name="keywords" content="UCS-2, universal coded character set, UCS-2 graphic field, converting, copying, UCS-2 graphic field, UCS-2 graphic field" />
<meta name="DC.Relation" scheme="URI" content="rbal3copydbmbrfmt.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal3rest.htm" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbal3ucs2" />
<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>Convert universal coded character set (UCS-2) graphic fields</title>
</head>
<body id="rbal3ucs2"><a name="rbal3ucs2"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Convert universal coded character set (UCS-2) graphic fields</h1>
<div><p>You use FMTOPT(*MAP) to convert universal coded character set (UCS-2)
graphic fields.</p>
<p>Using FMTOPT(*MAP) to copy <em>to</em> a UCS-2 graphic field converts the
data in the from-field CCSID to the CCSID of the UCS-2 graphic
to-field. If the length after conversion is less than the length of the UCS-2
graphic to-field, the field is padded . If the length after conversion is
greater than the length of the UCS-2 graphic to-field, the field is truncated.</p>
<p>Using FMTOPT(*MAP) to copy <em>from</em> a UCS-2 graphic field converts the
data from the CCSID of the UCS-2 graphic field to the CCSID of the to-field.
If the length after conversion is less than the length of the to-field, the
field is padded. If the length after conversion is greater than the length
of the to-field, the field is truncated. Shift-out and shift-in characters
are added around double-byte data except in DBCS-graphic and UCS-2 graphic
fields.</p>
<p>UCS-2 conversion possibilities also include variable length fields. Generally,
the result length of a variable length to-field will be the minimum of the
from-field converted length and the maximum length of the to-field.</p>
<p>The CCSID conversions created when copying from or to a UCS-2 graphic field
might cause the byte length of the data to be different after the conversion.
The maximum length of the to-field is used to determine if all of the converted
data will fit in the to-field.</p>
<p>When copying from a UCS-2 graphic field to a character field, or to a DBCS-either
field where the first byte is already converted to a valid SBCS character
(not a shift-out <span>X'0E'</span>), any remaining characters that cannot be
converted to SBCS (actual double-byte data in the UCS-2 field) will have a
single-byte substitution character set in its place.</p>
<p>When copying from a UCS-2 graphic field to a DBCS-only, DBCS-graphic field,
or to a DBCS-either field where the first byte is already converted to a DBCS
shift-out (<span>X'0E'</span>), any remaining characters that cannot be converted
to DBCS will have a double-byte substitution character set in its place.</p>
<p>To be successful when using FMTOPT(*MAP) to convert from or to UCS-2 data,
the resulting converted data for the to-field must conform to the to-field
type. Otherwise, conversion errors will occur and the to-field will be set
to its default value.</p>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbal3rest.htm">UCS-2 graphic fields restrictions</a></strong><br />
There are some restrictions when you copy from or to a UCS-2 graphic field.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3copydbmbrfmt.htm" title="When you copy from a database file to a database file, you must use the FMTOPT parameter if the record formats are not identical or if the files are different types (source or data). If either file is a device file or inline data file, the FMTOPT parameter does not apply. The records are truncated or padded with blanks or zeros when record lengths are different. A message is sent if the records are truncated.">Copying between different database record formats (FMTOPT parameter)</a></div>
</div>
</div>
</body>
</html>