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

82 lines
4.2 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="Statement naming conventions" />
<meta name="abstract" content="Identify enforced naming conventions." />
<meta name="description" content="Identify enforced naming conventions." />
<meta name="DC.Relation" scheme="URI" content="rzaiimst18.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="rzaiimst39" />
<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>Statement naming conventions</title>
</head>
<body id="rzaiimst39"><a name="rzaiimst39"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Statement naming conventions</h1>
<div><p>Identify enforced naming conventions.</p>
<p>The following table provides a summary of the naming conventions enforced
by the database server.</p>
<div class="section"><h4 class="sectiontitle">Statement naming conventions</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" id="d0e24">Statement</th>
<th valign="top" id="d0e26">Dynamic SQL</th>
<th valign="top" id="d0e28">Use an extended dynamic SQL package</th>
</tr>
</thead>
<tbody><tr><td valign="top" headers="d0e24 ">Local</td>
<td valign="top" headers="d0e26 ">Statement name must adhere to iSeries™ naming convention, although the
format of STMTxxxx is suggested <p>Cursor name must adhere to iSeries naming
conventions</p>
</td>
<td valign="top" headers="d0e28 ">Statement name must adhere to iSeries naming convention, although the
format of STMTxxxx is suggested <p>Cursor name must adhere to iSeries naming
conventions</p>
</td>
</tr>
<tr><td valign="top" headers="d0e24 ">DRDA<sup>®</sup></td>
<td valign="top" headers="d0e26 ">Statement name must be in the format of STMTxxxx <p>Cursor name must
be in the format:</p>
<p>CRSRyyyy for non-scrollable cursors or SCRSRyyyy for
scrollable cursors where yyyy is the same as xxxx.</p>
</td>
<td valign="top" headers="d0e28 ">Statement name must be in the format of Sxxxx <p>Cursor name must be
in the format of Cyy for non-scrollable cursors where yy is the same as xxxx
and yy is between 1 and 15.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note"><span class="notetitle">Notes:</span> <ol><li>The naming convention for statement names is not enforced on the local
system, so a client application can share prepared statements with an iSeries application
using the QSQPRCED system API.</li>
<li>The server appends a blank to the beginning of any statement name in the
format of STMTxxxx. A host application must then append a leading blank to
share statements with client applications that use the format STMTxxxx. The
server does not append a leading blank if the statement name is not in the
format of STMTxxxx.</li>
</ol>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaiimst18.htm" title="For Data Transfer, ODBC, iSeries Navigator database, and iSeries Access for Windows providers (OLE DB and the .NET Data provider).">Database server</a></div>
</div>
</div>
</body>
</html>