ibm-information-center/dist/eclipse/plugins/i5OS.ic.db2_5.4.0.1/rbafzmstrlssvpt.htm

83 lines
4.9 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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 xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.language" scheme="rfc1766" 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. -->
<meta name="dc.date" scheme="iso8601" content="2005-09-19" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<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="keywords" content="RELEASE SAVEPOINT statement, RELEASE SAVEPOINT,
SQL statements, savepoint, in RELEASE SAVEPOINT statement, savepoint&ndash;name" />
<title>RELEASE SAVEPOINT</title>
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
<link rel="stylesheet" type="text/css" href="ic.css" />
</head>
<body>
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
<a name="rlssvpt"></a>
<h2 id="rlssvpt"><a href="rbafzmst02.htm#ToC_1205">RELEASE SAVEPOINT</a></h2><a id="idx2992" name="idx2992"></a><a id="idx2993" name="idx2993"></a><a id="idx2994" name="idx2994"></a>
<p>The RELEASE SAVEPOINT statement releases the identified savepoint and any
subsequently established savepoints within a unit of work.</p>
<a name="wq1672"></a>
<h3 id="wq1672"><a href="rbafzmst02.htm#ToC_1206">Invocation</a></h3>
<p>This statement can be embedded in an application program or issued interactively.
It is an executable statement that can be dynamically prepared.</p>
<a name="wq1673"></a>
<h3 id="wq1673"><a href="rbafzmst02.htm#ToC_1207">Authorization</a></h3>
<p>None required.</p>
<a name="wq1674"></a>
<h3 id="wq1674"><a href="rbafzmst02.htm#ToC_1208">Syntax</a></h3>
<a href="rbafzmstrlssvpt.htm#synsreleases"><img src="c.gif" alt="Click to skip syntax diagram" /></a>
<pre class="cgraphic"><span><img src="c.gif" alt="Read syntax diagram" longdesc="rbafzmstsyn365.htm"
border="0" /></span><a href="#skipsyn-364"><img src="c.gif" alt="Skip visual syntax diagram"
border="0" /></a> .-TO-.
>>-RELEASE--+----+--SAVEPOINT--<span class="italic">savepoint-name</span>------------------>&lt;
</pre>
<a name="skipsyn-364" id="skipsyn-364"></a>
<a name="synsreleases"></a>
<h3 id="synsreleases"><a href="rbafzmst02.htm#ToC_1209">Description</a></h3>
<dl class="parml">
<dt class="bold"><var class="pv">savepoint-name</var> </dt><a id="idx2995" name="idx2995"></a>
<dd>Identifies a savepoint to release. If the named savepoint does not exist,
an error occurs. The named savepoint and all the savepoints that were subsequently
established in the unit of work are released. After a savepoint is released,
it is no longer maintained and rollback to the savepoint is no longer possible.
</dd>
</dl>
<a name="wq1675"></a>
<h3 id="wq1675"><a href="rbafzmst02.htm#ToC_1210">Note</a></h3>
<p><span class="bold">Savepoint Names:</span> The name of the savepoint that was
released can be re-used in another SAVEPOINT statement, regardless of whether
the UNIQUE keyword was specified on an earlier SAVEPOINT statement specifying
this same savepoint name.</p>
<p><span class="bold">Isolation Level Restriction:</span> A RELEASE SAVEPOINT
statement is not allowed if commitment control is not active for the activation
group. For information on determining which commitment definition is used,
see <a href="rbafzmstc4comit.htm#macomm">Notes</a>.</p>
<a name="wq1676"></a>
<h3 id="wq1676"><a href="rbafzmst02.htm#ToC_1211">Example</a></h3>
<p>Assume that a main routine sets savepoint A and then invokes a subroutine
that sets savepoints B and C. When control returns to the main routine, release
savepoint A and any subsequently set savepoints. Savepoints B and C, which
were set by the subroutine, are released in addition to A.</p>
<pre class="xmp"> <span class="bold">RELEASE SAVEPOINT</span> A</pre><a id="idx2996" name="idx2996"></a><a id="idx2997" name="idx2997"></a>
<hr /><br />
[ <a href="#Top_Of_Page">Top of Page</a> | <a href="rbafzmstrele.htm">Previous Page</a> | <a href="rbafzmstrena.htm">Next Page</a> | <a href="rbafzmst02.htm#wq1">Contents</a> |
<a href="rbafzmstindex.htm#index">Index</a> ]
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>