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

127 lines
8.3 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="Database management" />
<meta name="abstract" content="Database management support provides default coded character set identifier (CCSID) values for database files on the server. All database files are assigned a CCSID. At file creation time, the CCSID is either explicitly assigned through DDS, SQL, or IDDU, or it is implicitly assigned the job default CCSID (DFTCCSID)." />
<meta name="description" content="Database management support provides default coded character set identifier (CCSID) values for database files on the server. All database files are assigned a CCSID. At file creation time, the CCSID is either explicitly assigned through DDS, SQL, or IDDU, or it is implicitly assigned the job default CCSID (DFTCCSID)." />
<meta name="DC.Relation" scheme="URI" content="rbagsccsidsyssupport.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/dspfd.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagslingandcultjobattrib.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagslngidsdefaultccsids.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/dspffd.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagslingandcultjobattrib.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagslngidsdefaultccsids.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagsjobdefaultccsid.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="rbagsdataman" />
<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>Database management</title>
</head>
<body id="rbagsdataman"><a name="rbagsdataman"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Database management</h1>
<div><p>Database management support provides default coded character set
identifier (CCSID) values for database files on the server. All database files
are assigned a CCSID. At file creation time, the CCSID is either explicitly
assigned through DDS, SQL, or IDDU, or it is implicitly assigned the job default
CCSID (DFTCCSID).</p>
<div class="section" id="rbagsdataman__HDRDBFILESSUPPORTFORCCSID"><a name="rbagsdataman__HDRDBFILESSUPPORTFORCCSID"><!-- --></a><h4 class="sectiontitle">Database files support for
CCSIDs</h4><p>IBM<sup>®</sup> system files and licensed program database files
are created with the CCSID of choice for each of the national language versions.
Only the customer files are automatically assigned the CCSID of the job creating
the file. You can use the Display File Description (DSPFD) command to view
the CCSID of a file.</p>
<p>Program-described files are assigned
CCSID 65535. If a CCSID is not explicitly specified on the CRTPF or CRTSRCPF
command, database source files default to the job default CCSID at file creation.</p>
<p>If
a database logical file is defined over several physical files, it is assigned
a CCSID at the field level and assumes the CCSID value of the physical file.
Logical files cannot be explicitly assigned a CCSID value.</p>
</div>
<div class="section" id="rbagsdataman__HDRDBFIELDSCCSIDSUPPORT"><a name="rbagsdataman__HDRDBFIELDSCCSIDSUPPORT"><!-- --></a><h4 class="sectiontitle">Database fields and support for
CCSIDs</h4><p>Except for numeric database fields, database fields are supported
by CCSIDs. You can use the Display File Field Description (DSPFFD) command
to view the CCSID of the fields in a file.</p>
<p>Hexadecimal fields are assigned
CCSID 65535.</p>
<p>An implicit CCSID value is assigned to the following fields
if a CCSID was not explicitly assigned through DDS, SQL, or IDDU at file creation:</p>
<ul><li>Physical-file character</li>
<li>DBCS-open</li>
<li>DBCS-only</li>
<li>DBCS-either</li>
<li>Graphic</li>
</ul>
<p>The implicitly assigned CCSID is the job default CCSID, or a CCSID
associated with the job default CCSID.</p>
<ul><li>A character field is assigned the single-byte character set (SBCS) CCSID
that is associated with the job default CCSID.</li>
<li>A DBCS-open, DBCS-only, and DBCS-either field is assigned the mixed byte
CCSID.</li>
<li>A Graphic field is assigned the double-byte character set (DBCS) CCSID
that is associated with the job default CCSID.</li>
</ul>
<p>For example, if the job default CCSID is 5026 (which
is a CCSID that identifies mixed data), an SBCS character field is assigned
the SBCS CCSID associated with 5026. Thus, the CCSID for that field is 290.
If there is no CCSID of the required character set type then a CCSID of 65535
is used. See Job Default Coded Character Set Identifier (DFTCCSID) for more
information about job default CCSIDs. See Language identifiers and associated
default CCSIDS for a list of language identifiers and the DFTCCSID valued
associated with those identifiers.</p>
<p>Database logical-file fields are
assigned a CCSID value based on their data type and the data type of the underlying
physical file field.</p>
</div>
<div class="section" id="rbagsdataman__HDRDBMANANDCONVSUPPORT"><a name="rbagsdataman__HDRDBMANANDCONVSUPPORT"><!-- --></a><h4 class="sectiontitle">Database management and conversion
support for CCSIDs</h4><p>Database management support converts non-graphic
character data read from, or written to, database files using the file CCSID
and the job CCSID.</p>
<ul><li>If data is being read from a database file and the CCSID of the file is
the same as the job CCSID, no conversion is done.</li>
<li>If data is being read from a database file and the CCSID of the file and
the job CCSID are different, the data is converted to the CCSID of the job.</li>
<li>If data is being written to a database file and the CCSID of the file
is the same as the job CCSID, no conversion is done.</li>
<li>If data is being written to a database file and the CCSID of the file
and the job CCSID are different, the data is converted to match the CCSID
of the file.</li>
</ul>
<p>No conversion is performed if either the CCSID of the job or the CCSID
of the database file is equal to 65535.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbagsccsidsyssupport.htm" title="The server provides support for CCSIDs in the functions as shown in the table.">i5/OS function support for CCSIDs</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rbagslingandcultjobattrib.htm" title="Job attributes are set at the time a job starts.">Job attributes</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>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="rbagsjobdefaultccsid.htm" title="A job attribute, job default CCSID (DFTCCSID), is created for jobs with a CCSID of 65535. The DFTCCSID value is used by a system code when a CCSID other than 65535 is needed.">Job default coded character set identifier</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="../cl/dspfd.htm">Display File Description (DSPFD) command</a></div>
<div><a href="../cl/dspffd.htm">Display File Field Description (DSPFFD) command</a></div>
</div>
</div>
</body>
</html>