93 lines
4.8 KiB
HTML
93 lines
4.8 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 xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="dc.language" scheme="rfc1766" 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. -->
|
|
<meta name="dc.date" scheme="iso8601" content="2005-09-19" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<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="keywords" content="SQLDATA field of SQLDA, SQLNAME field of SQLDA,
|
|
in SQLDATA, specifying, CCSID (coded character set identifier), in SQLNAME" />
|
|
<title>CCSID values in SQLDATA or SQLNAME</title>
|
|
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
|
|
<link rel="stylesheet" type="text/css" href="ic.css" />
|
|
</head>
|
|
<body>
|
|
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
|
|
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
|
|
|
|
|
|
<a name="sname"></a>
|
|
<h2 id="sname"><a href="rbafzmst02.htm#ToC_1503">CCSID values in SQLDATA or SQLNAME</a></h2><a id="idx3457" name="idx3457"></a><a id="idx3458" name="idx3458"></a>
|
|
<p>In the OPEN, FETCH, CALL, and EXECUTE statements, the SQLNAME field of
|
|
the SQLVAR element can be used to specify a CCSID for string host variables.
|
|
If the SQLNAME field is used to specify a CCSID, the SQLNAME length must be
|
|
set to 8. In addition, the first 4 bytes of SQLNAME must be set as described
|
|
in the table below. If no CCSID is specified, the job CCSID is used.</p>
|
|
<p>In the DESCRIBE, DESCRIBE TABLE, and PREPARE statements, the SQLDATA field
|
|
of the SQLVAR element contains the CCSID of the column of the result table
|
|
if that column is a string column. The CCSID is located in bytes 3 and 4 as
|
|
described in <a href="rbafzmstsname.htm#dccsid">Table 99</a>.<a id="idx3459" name="idx3459"></a><a id="idx3460" name="idx3460"></a></p>
|
|
<a name="dccsid"></a>
|
|
<table id="dccsid" width="100%" summary="" border="1" frame="hsides" rules="rows">
|
|
<caption>Table 99. CCSID values for SQLDATA or SQLNAME</caption>
|
|
<thead valign="bottom">
|
|
<tr>
|
|
<th id="wq2019" width="25%" align="left" valign="bottom">Data Type</th>
|
|
<th id="wq2020" width="25%" align="left" valign="bottom">
|
|
<div class="lines">Encoding<br />
|
|
Scheme<br />
|
|
</div></th>
|
|
<th id="wq2021" width="25%" align="left" valign="bottom">Bytes 1 & 2</th>
|
|
<th id="wq2022" width="25%" align="left" valign="bottom">Bytes 3 & 4</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq2019">Character</td>
|
|
<td align="left" valign="top" headers="wq2020">SBCS data</td>
|
|
<td align="left" valign="top" headers="wq2021"><span class="hex">X'0000'</span></td>
|
|
<td align="left" valign="top" headers="wq2022">ccsid</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq2019">Character</td>
|
|
<td align="left" valign="top" headers="wq2020">Mixed data</td>
|
|
<td align="left" valign="top" headers="wq2021"><span class="hex">X'0000'</span></td>
|
|
<td align="left" valign="top" headers="wq2022">ccsid</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq2019">Character</td>
|
|
<td align="left" valign="top" headers="wq2020">Bit data</td>
|
|
<td align="left" valign="top" headers="wq2021"><span class="hex">X'0000'</span></td>
|
|
<td align="left" valign="top" headers="wq2022">65535</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq2019">Graphic</td>
|
|
<td align="left" valign="top" headers="wq2020">Not Applicable</td>
|
|
<td align="left" valign="top" headers="wq2021"><span class="hex">X'0000'</span></td>
|
|
<td align="left" valign="top" headers="wq2022">ccsid</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq2019">Any other data type</td>
|
|
<td align="left" valign="top" headers="wq2020">Not Applicable</td>
|
|
<td align="left" valign="top" headers="wq2021">Not Applicable</td>
|
|
<td align="left" valign="top" headers="wq2022">Not Applicable</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<hr /><br />
|
|
[ <a href="#Top_Of_Page">Top of Page</a> | <a href="rbafzmstsqltc.htm">Previous Page</a> | <a href="rbafzmstsqldaunrec.htm">Next Page</a> | <a href="rbafzmst02.htm#wq1">Contents</a> |
|
|
<a href="rbafzmstindex.htm#index">Index</a> ]
|
|
|
|
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
|
|
</body>
|
|
</html>
|