94 lines
5.4 KiB
HTML
94 lines
5.4 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="SQL7910 - All SQL cursors closed" />
|
|
<meta name="DC.Relation" scheme="URI" content="pimesodp.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="sql7910" />
|
|
<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>SQL7910 - All SQL cursors closed</title>
|
|
</head>
|
|
<body id="sql7910"><a name="sql7910"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">SQL7910 - All SQL cursors closed</h1>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th colspan="2" align="center" valign="middle" id="d0e16">SQL7910</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr valign="middle"><td valign="middle" width="26.02040816326531%" headers="d0e16 ">Message Text:</td>
|
|
<td valign="middle" width="73.9795918367347%" headers="d0e16 ">SQL cursors closed.</td>
|
|
</tr>
|
|
<tr valign="middle"><td valign="middle" width="26.02040816326531%" headers="d0e16 ">Cause Text:</td>
|
|
<td valign="middle" width="73.9795918367347%" headers="d0e16 ">SQL cursors have been closed and all Open Data Paths (ODPs) have been
|
|
deleted, except those that were opened by programs with the CLOSQLCSR(*ENDJOB)
|
|
option or were opened by modules with the CLOSQLCSR(*ENDACTGRP) option. All
|
|
SQL programs on the call stack have completed, and the SQL environment has
|
|
been exited. This process includes the closing of cursors, the deletion of
|
|
ODPs, the removal of prepared statements, and the release of locks.</td>
|
|
</tr>
|
|
<tr valign="middle"><td valign="middle" width="26.02040816326531%" headers="d0e16 ">Recovery Text:</td>
|
|
<td valign="middle" width="73.9795918367347%" headers="d0e16 ">To keep cursors, ODPs, prepared statements, and locks available after
|
|
the completion of a program, use the CLOSQLCSR precompile parameter. <ul><li>The *ENDJOB option will allow the user to keep the SQL resources active
|
|
for the duration of the job</li>
|
|
<li>The *ENDSQL option will allow the user to keep SQL resources active across
|
|
program calls, provided the SQL environment stays resident. Running an SQL
|
|
statement in the first program of an application will keep the SQL environment
|
|
active for the duration of that application.</li>
|
|
<li>The *ENDPGM option, which is the default for non-Integrated Language
|
|
Environment<sup>®</sup> (ILE) programs, causes all SQL resources to only be accessible
|
|
by the same invocation of a program. Once an *ENDPGM program has completed,
|
|
if it is called again, the SQL resources are no longer active.</li>
|
|
<li>The *ENDMOD option causes all SQL resources to only be accessible by the
|
|
same invocation of the module.</li>
|
|
<li>The *ENDACTGRP option, which is the default for ILE modules, will allow
|
|
the user to keep the SQL resources active for the duration of the activation
|
|
group.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="section"><p>This message is sent when the job's call stack no longer contains
|
|
a program that has run an SQL statement.</p>
|
|
</div>
|
|
<div class="section"><p>Unless CLOSQLCSR(*ENDJOB) or CLOSQLCSR(*ENDACTGRP) was specified,
|
|
the SQL environment for reusing ODPs across program calls exists only until
|
|
the active programs that ran the SQL statements complete.</p>
|
|
</div>
|
|
<div class="section"><p>Except for ODPs associated with *ENDJOB or *ENDACTGRP cursors,
|
|
all ODPs are deleted when all the SQL programs on the call stack complete
|
|
and the SQL environment is exited.</p>
|
|
</div>
|
|
<div class="section"><p>This completion process includes closing of cursors, the deletion
|
|
of ODPs, the removal of prepared statements, and the release of locks.</p>
|
|
</div>
|
|
<div class="section"><p>Putting an SQL statement that can be run in the first program
|
|
of an application keeps the SQL environment active for the duration of that
|
|
application. This allows ODPs in other SQL programs to be reused when the
|
|
programs are repeatedly called. CLOSQLCSR(*ENDJOB) or CLOSQLCSR(*ENDACTGRP)
|
|
can also be specified.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="pimesodp.htm" title="Several of the following SQL run-time messages refer to open data paths.">Query optimization performance information messages and open data paths</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |