ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaii_5.4.0.1/rzaiimstsqlname.htm

194 lines
9.0 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="SQL package names" />
<meta name="abstract" content="The database server is sometimes used as a gateway to other relational databases that use DRDA . The database server automatically creates one or more SQL packages on the target relational database. The package names are generated according to the attributes currently used by the server." />
<meta name="description" content="The database server is sometimes used as a gateway to other relational databases that use DRDA . The database server automatically creates one or more SQL packages on the target relational database. The package names are generated according to the attributes currently used by the server." />
<meta name="DC.Relation" scheme="URI" content="rzaiimst38.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="rzaiimstsqlname" />
<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>SQL package names</title>
</head>
<body id="rzaiimstsqlname"><a name="rzaiimstsqlname"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">SQL package names</h1>
<div><p>The database server is sometimes used as a gateway to other relational
databases that use DRDA<sup>®</sup> . The database server automatically creates one
or more SQL packages on the target relational database. The package names
are generated according to the attributes currently used by the server.</p>
<div class="section"><h4 class="sectiontitle">Package names if the relational database is not an iSeries™ server</h4><p> The
package is created in a collection called QSQL400 on the application server
if the relational database (RDB) is not an iSeries server. When the application
server is not an iSeries server,
the package name is QZD <span class="uicontrol">abcde</span>, in which <span class="uicontrol">abcde</span> corresponds
to specific parser options being used. </p>
<p>If the RDB is an iSeries server,
the package is usually created in the QGPL library which most database access
clients can customize.</p>
<p>The following table shows the options for the
package name.</p>
</div>
<div class="section"><h4 class="sectiontitle">Package name field options</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th align="center" valign="top" class="firstcol" id="d0e52">Field</th>
<th valign="top" id="d0e54">Field description</th>
<th valign="top" id="d0e56">Options</th>
</tr>
</thead>
<tbody><tr><th align="center" valign="top" class="firstcol" id="d0e60" headers="d0e52 ">a</th>
<td valign="top" headers="d0e60 d0e54 ">Date format</td>
<td valign="top" headers="d0e60 d0e56 "> <ul><li>ISO, JIS</li>
<li>USA</li>
<li>EUR</li>
<li>JUL </li>
</ul>
</td>
</tr>
<tr><th align="center" valign="top" class="firstcol" id="d0e77" headers="d0e52 ">b</th>
<td valign="top" headers="d0e77 d0e54 ">Time format</td>
<td valign="top" headers="d0e77 d0e56 "> <ul><li>JIS</li>
<li>USA</li>
<li>EUR, ISO </li>
</ul>
</td>
</tr>
<tr><th align="center" valign="top" class="firstcol" id="d0e92" headers="d0e52 ">c</th>
<td valign="top" headers="d0e92 d0e54 ">Commitment control/ decimal delimiter</td>
<td valign="top" headers="d0e92 d0e56 "> <ul><li>*CS/period</li>
<li>*CS/comma</li>
<li>*CHG/period</li>
<li>*CHG/comma</li>
<li>*RR/period</li>
<li>*RR/comma </li>
</ul>
</td>
</tr>
<tr><th align="center" valign="top" class="firstcol" id="d0e113" headers="d0e52 ">d</th>
<td valign="top" headers="d0e113 d0e54 ">String delimiter</td>
<td valign="top" headers="d0e113 d0e56 "> <ul><li>apostrophe</li>
<li>quote </li>
</ul>
</td>
</tr>
<tr><th align="center" valign="top" class="firstcol" id="d0e126" headers="d0e52 ">e</th>
<td valign="top" headers="d0e126 d0e54 ">Maximum number of statements allowed for package</td>
<td valign="top" headers="d0e126 d0e56 "> <ul><li>0 - 64</li>
<li>1 - 256</li>
<li>2 - 512</li>
<li>3 - 1024</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section"><h4 class="sectiontitle">Package names if the relational database is an iSeries server</h4><p>When
the application server is an iSeries server, the package name is QZDA <span class="uicontrol">abcdef</span>,
in which <span class="uicontrol">abcdef</span> corresponds to specific parser options
being used.</p>
</div>
<div class="section"><h4 class="sectiontitle">Package name field options</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th align="center" valign="top" class="firstcol" id="d0e169">Field</th>
<th valign="top" id="d0e171">Field description</th>
<th valign="top" id="d0e173">Options</th>
</tr>
</thead>
<tbody><tr><th align="center" valign="top" class="firstcol" id="d0e177" headers="d0e169 ">a</th>
<td valign="top" headers="d0e177 d0e171 ">Date format</td>
<td valign="top" headers="d0e177 d0e173 "> <ul><li>ISO, JIS</li>
<li>USA</li>
<li>EUR</li>
<li>JUL</li>
<li>MDY</li>
<li>DMY</li>
<li>YMD </li>
</ul>
</td>
</tr>
<tr><th align="center" valign="top" class="firstcol" id="d0e200" headers="d0e169 ">b</th>
<td valign="top" headers="d0e200 d0e171 ">Time format and naming convention</td>
<td valign="top" headers="d0e200 d0e173 "> <ul><li>ISO, JIS and SQL naming</li>
<li>USA and SQL naming</li>
<li>EUR and SQL naming</li>
<li>HMS and SQL naming</li>
<li>ISO, JIS and system naming</li>
<li>USA and system naming</li>
<li>EUR and system naming</li>
<li>HMS and system naming </li>
</ul>
</td>
</tr>
<tr><th align="center" valign="top" class="firstcol" id="d0e225" headers="d0e169 ">c</th>
<td valign="top" headers="d0e225 d0e171 ">Commit level and decimal point</td>
<td valign="top" headers="d0e225 d0e173 "> <ul><li>*CS/period</li>
<li>*CS/comma</li>
<li>*ALL/period</li>
<li>*ALL/comma</li>
<li>*CHG/period</li>
<li>*CHG/comma</li>
<li>*NONE/period</li>
<li>*NONE/comma </li>
</ul>
</td>
</tr>
<tr><th align="center" valign="top" class="firstcol" id="d0e250" headers="d0e169 ">d</th>
<td valign="top" headers="d0e250 d0e171 ">String delimiter</td>
<td valign="top" headers="d0e250 d0e173 "> <ul><li>apostrophe</li>
<li>quote </li>
</ul>
</td>
</tr>
<tr><th align="center" valign="top" class="firstcol" id="d0e263" headers="d0e169 ">e</th>
<td valign="top" headers="d0e263 d0e171 ">Number of sections in package</td>
<td valign="top" headers="d0e263 d0e173 "> <ul><li>0 - 64</li>
<li>1 - 256</li>
<li>2 - 512</li>
<li>3 - 1024 </li>
</ul>
</td>
</tr>
<tr><th align="center" valign="top" class="firstcol" id="d0e280" headers="d0e169 ">f</th>
<td valign="top" headers="d0e280 d0e171 ">Date and Time separation</td>
<td valign="top" headers="d0e280 d0e173 "> <ul><li>The high order bits of the character:</li>
<li><span class="uicontrol">'1100'b</span> - One of the ISO formats for da</li>
<li><span class="uicontrol">'1101'b</span> - Comma as date separation</li>
<li><span class="uicontrol">'1110'b</span> - Period as date separation</li>
<li><span class="uicontrol">'1111'b</span> - Colon as date separation</li>
<li>The low order bits of the character:</li>
<li><span class="uicontrol">'0001'b</span> - An ISO format of time</li>
<li><span class="uicontrol">'0010'b</span> - Comma as time separator</li>
<li><span class="uicontrol">'0011'b</span> - Period as time separator</li>
<li><span class="uicontrol">'0100'b</span> - Slash as time separator</li>
<li><span class="uicontrol">'0101'b</span> - Dash as time separator</li>
<li><span class="uicontrol">'0110'b</span> - Blank as time separator </li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaiimst38.htm" title="SQL packages bind SQL statements in an application program to a relational database. They are used to enhance the performance of applications that use dynamic SQL support by allowing the application to reuse information about the SQL requests.">SQL packages</a></div>
</div>
</div>
</body>
</html>