ibm-information-center/dist/eclipse/plugins/i5OS.ic.ddp_5.4.0.1/rbal1sqlcalludb.htm

60 lines
4.1 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="DB2 Universal Database for iSeries CALL considerations" />
<meta name="abstract" content="Stored procedures written in C that are invoked on some platforms cannot use argc and argv as parameters (that is, they cannot be of type main()). This differs from iSeries stored procedures which must use argc and argv." />
<meta name="description" content="Stored procedures written in C that are invoked on some platforms cannot use argc and argv as parameters (that is, they cannot be of type main()). This differs from iSeries stored procedures which must use argc and argv." />
<meta name="DC.Relation" scheme="URI" content="rbal1stored.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="rbal1sqlcalludb" />
<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>DB2 Universal Database for iSeries CALL considerations</title>
</head>
<body id="rbal1sqlcalludb"><a name="rbal1sqlcalludb"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1"><span class="keyword">DB2 Universal Database™ for iSeries</span> CALL considerations</h1>
<div><p>Stored procedures written in C that are invoked on some platforms
cannot use argc and argv as parameters (that is, they cannot be of type main()).
This differs from <span class="keyword">iSeries™</span> stored
procedures which must use argc and argv.</p>
<div class="section"><p>For examples of stored procedures for DB2<sup>®</sup> UDB platforms, see the \SQLLIB\SAMPLES
(or /sqllib/samples) subdirectory. Look for outsrv.sqc and outcli.sqc in the
C subdirectory.</p>
</div>
<div class="section"><p>For UDB stored procedures called by an <span class="keyword">iSeries server</span>,
make sure that the procedure name is in uppercase. <span class="keyword">iSeries server</span> currently
folds procedure names to uppercase. This means that a procedure on the UDB
server, having the same procedure name but in lowercase, will not be found.
For stored procedures on an <span class="keyword">iSeries server</span>,
the procedure names are in uppercase.</p>
</div>
<div class="section"><p>Stored procedures on the <span class="keyword">iSeries server</span> cannot
have a COMMIT in them when they are created to run in the same activation
group as the calling program (the proper way to create them). In UDB, a stored
procedure is allowed to have a COMMIT, but the application designer should
be aware that there is no knowledge on the part of <span class="keyword">DB2 UDB for iSeries</span> that
the commit occurred.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal1stored.htm" title="The SQL CALL statement is not actually specific to distributed relational databases, but a discussion of it is included here because its main value is in distributing application logic and processing.">SQL CALL statement (stored procedures)</a></div>
</div>
</div>
</body>
</html>