159 lines
9.7 KiB
HTML
159 lines
9.7 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="reference" />
|
|
<meta name="DC.Title" content="iSeries server support" />
|
|
<meta name="abstract" content="The default CCSID for a job on the iSeries server is specified using the Change Job (CHGJOB) command." />
|
|
<meta name="description" content="The default CCSID for a job on the iSeries server is specified using the Change Job (CHGJOB) command." />
|
|
<meta name="DC.subject" content="Coded Character Set Identifier (CCSID), in user profile, CCSID (coded character set identifier), in user profile, user profile, CCSID, changing, tagging, how data is translated" />
|
|
<meta name="keywords" content="Coded Character Set Identifier (CCSID), in user profile, CCSID (coded character set identifier), in user profile, user profile, CCSID, changing, tagging, how data is translated" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal1ccsid.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal1xplat.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/chgjob.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/chgpf.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/cpyf.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/crtpf.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/crtsrcpf.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/wrkjob.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="rbal1serversupport" />
|
|
<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>iSeries server support</title>
|
|
</head>
|
|
<body id="rbal1serversupport"><a name="rbal1serversupport"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1"><span class="keyword">iSeries server</span> support</h1>
|
|
<div><p>The default CCSID for a job on the <span class="keyword">iSeries™ server</span> is
|
|
specified using the <span class="cmdname">Change Job (CHGJOB)</span> command.</p>
|
|
<div class="section"><p>If a CCSID is not specified in this way, the job CCSID is obtained
|
|
from the CCSID attribute of the user profile. If a CCSID is not specified
|
|
on the user profile, the system gets it from the QCCSID system value. This
|
|
QCCSID value is initially set to 65535. If your server is in a distributed
|
|
relational database with unlike systems, it might not be able to use CCSID
|
|
65535.</p>
|
|
</div>
|
|
<div class="section"><p>All control information that flows between the application requester
|
|
(AR) and application server (AS) is in CCSID 500 (a DRDA<sup>®</sup> standard). This is information such
|
|
as collection names, table names, and some descriptive text. Using variant
|
|
characters for control information causes these names to be converted, which
|
|
can affect performance. Package names are also sent in CCSID 500. Using variant
|
|
characters in a package name causes the package name to be converted. This
|
|
means the package is not found at run time.</p>
|
|
</div>
|
|
<div class="section"><p>After a job has been initiated, you can change the job CCSID by
|
|
using the <span class="cmdname">Change Job (CHGJOB)</span> command. To do this: </p>
|
|
</div>
|
|
<div class="section"> <ol><li> Enter the Work with Job (WRKJOB) command to get the Work with Jobs display.</li>
|
|
<li> Select option 2 (Display job definition attributes). This locates the
|
|
current CCSID value so you can reset the job to its original CCSID value later. </li>
|
|
<li> Enter the Change Job (CHGJOB) command with the new CCSID value.</li>
|
|
</ol>
|
|
</div>
|
|
<div class="section"><p>The new CCSID value is reflected in the job immediately. However,
|
|
if the job CCSID you change is an AR job, the new CCSID does not affect the
|
|
work being done until the next CONNECT.</p>
|
|
</div>
|
|
<div class="section"> <div class="attention"><span class="attentiontitle">Attention:</span> If you change the CCSID of an AS job, the
|
|
results cannot be predicted.</div>
|
|
</div>
|
|
<div class="section"><p>Source files are tagged with the job CCSID if a CCSID is not explicitly
|
|
specified on the Create Source Physical File (CRTSRCPF) or Create Physical
|
|
File (CRTPF) command for source files. Externally described database files
|
|
and tables are tagged with the job CCSID if a CCSID is not explicitly specified
|
|
in data description specification (DDS), in interactive data definition utility
|
|
(IDDU), or in the CREATE TABLE SQL statement. </p>
|
|
</div>
|
|
<div class="section"><p>For source and externally described files, if the job CCSID is
|
|
65535, the default CCSID based on the language of the operating system is
|
|
used. Program described files are tagged with CCSID 65535. Views are tagged
|
|
with the CCSID of its corresponding table tag or column-level tags. If a view
|
|
is defined over several tables, it is tagged at the column level and assumes
|
|
the tags of the underlying columns. Views cannot be explicitly tagged with
|
|
a CCSID. The system automatically converts data between the job and the table
|
|
if the CCSIDs are not equal and neither of the CCSIDs is equal to 65535.</p>
|
|
</div>
|
|
<div class="section"><p>When you change the CCSID of a tagged table, it cannot be tagged
|
|
at the column level or have views defined on it. To change the CCSID of a
|
|
tagged table, use the Change Physical File (CHGPF) command. To change a table
|
|
with column-level tagging, you must create it again and copy the data to a
|
|
new table using FMT(*MAP) on the Copy File (CPYF) command. When a table has
|
|
one or more views defined, you must follow these steps to change the table: </p>
|
|
</div>
|
|
<div class="section"> <ol><li>Save the view and table along with their access paths.</li>
|
|
<li>Delete the views.</li>
|
|
<li>Change the table.</li>
|
|
<li>Restore the views and their access paths over the created table.</li>
|
|
</ol>
|
|
</div>
|
|
<div class="section"><p>Source files and externally described files migrated to <span class="keyword">DB2 Universal Database™ for iSeries</span> that are not tagged or are
|
|
implicitly tagged with CCSID 65535 will be tagged with the default CCSID based
|
|
on the language of the operating system installed. This includes files that
|
|
are on the system when you install a new release and files that are restored
|
|
to <span class="keyword">DB2<sup>®</sup> UDB for iSeries</span>.</p>
|
|
</div>
|
|
<div class="section"><p>All data that is sent between an AR and an AS is sent not converted.
|
|
In addition, the CCSID is also sent. The receiving job automatically converts
|
|
the data to its own CCSID if it is different from the way the data is tagged.
|
|
For example, consider the following application that is run on a dealership
|
|
system, KC105. </p>
|
|
</div>
|
|
<div class="section"><div class="note"><span class="notetitle">Note:</span> By using the code examples, you agree to the terms of the <a href="codedisclaimer.htm">Code license and disclaimer information</a>.</div>
|
|
<pre>CRTSQL<em>xxx</em> PGM(PARTS1) COMMIT(*CHG) RDB(KC000)
|
|
|
|
PROC: PARTS1;
|
|
.
|
|
.
|
|
EXEC SQL
|
|
SELECT * INTO :PARTAVAIL
|
|
FROM INVENTORY
|
|
WHERE ITEM = :PARTNO;
|
|
.
|
|
.
|
|
END PARTS1;</pre>
|
|
</div>
|
|
<div class="section"><p>In the preceding example, the local system (KC105) has the QCCSID
|
|
system value set at CCSID 37. The remote regional center (KC000) uses CCSID
|
|
937 and all its tables are tagged with CCSID 937. CCSID processing takes place
|
|
as follows: </p>
|
|
<ul><li>The KC105 system sends an input host variable (:PARTNO) in CCSID 37.
|
|
(The DECLARE VARIABLE SQL statement can be used if the CCSID of the job is
|
|
not appropriate for the host variable.)</li>
|
|
<li>The KC000 system converts :PARTNO to CCSID 937, selects the required data,
|
|
and sends the data back to KC105 in CCSID 937.</li>
|
|
<li>When KC105 gets the data, it converts the data to CCSID 37 and places
|
|
it in :PARTAVAIL for local use.</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal1ccsid.htm" title="Support for the national language of any country requires the proper handling of a minimum set of characters.">Coded character set identifier</a></div>
|
|
</div>
|
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="rbal1xplat.htm" title="This topic collection concentrates on describing iSeries support for distributed relational databases in a network of iSeries servers (a like environment).">User FAQs</a></div>
|
|
</div>
|
|
<div class="relref"><strong>Related reference</strong><br />
|
|
<div><a href="../cl/chgjob.htm">Change Job (CHGJOB) command</a></div>
|
|
<div><a href="../cl/chgpf.htm ">Change Physical File (CHGPF) command</a></div>
|
|
<div><a href="../cl/cpyf.htm">Copy File (CPYF) command</a></div>
|
|
<div><a href="../cl/crtpf.htm">Create Physical File (CRTPF) command</a></div>
|
|
<div><a href="../cl/crtsrcpf.htm">Create Source Physical File (CRTSRCPF) command</a></div>
|
|
<div><a href="../cl/wrkjob.htm">Work with Job (WRKJOB) command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |