ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzakj_5.4.0.1/rzakjrollbacks.htm

111 lines
6.7 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="How commit and rollback operations work" />
<meta name="abstract" content="Commit and rollback operations affect changes that are made under commitment control." />
<meta name="description" content="Commit and rollback operations affect changes that are made under commitment control." />
<meta name="DC.Relation" scheme="URI" content="rzakjconcepts.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakjcommitops.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakjrollbops.htm" />
<meta name="DC.Relation" scheme="URI" content="../books/c0918120.pdf" />
<meta name="DC.Relation" scheme="URI" content="../books/c0918160.pdf" />
<meta name="DC.Relation" scheme="URI" content="../books/sc092712.pdf" />
<meta name="DC.Relation" scheme="URI" content="../rbam6/clpro.htm" />
<meta name="DC.Relation" scheme="URI" content="../cli/rzadpkickoff.htm" />
<meta name="DC.Relation" scheme="URI" content="../dbp/rbafokickoff.htm" />
<meta name="DC.Relation" scheme="URI" content="../apiref/api.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2004, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2004, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzakjrollbacks" />
<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>How commit and rollback operations work</title>
</head>
<body id="rzakjrollbacks"><a name="rzakjrollbacks"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">How commit and rollback operations work</h1>
<div><p>Commit and rollback operations affect changes that are made under
commitment control.</p>
<p>The following programming languages and application programming interfaces
(APIs) support commit and rollback operations.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" id="d0e24">Language or API</th>
<th valign="top" id="d0e26">Commit</th>
<th valign="top" id="d0e28">Rollback</th>
</tr>
</thead>
<tbody><tr><td valign="top" headers="d0e24 ">CL</td>
<td valign="top" headers="d0e26 "><a href="../cl/commit.htm">COMMIT command</a></td>
<td valign="top" headers="d0e28 "><a href="../cl/rollback.htm">ROLLBACK command</a></td>
</tr>
<tr><td valign="top" headers="d0e24 ">IBM<sup>®</sup> Integrated
Language Environment<sup>®</sup> (ILE) RPG/400<sup>®</sup></td>
<td valign="top" headers="d0e26 ">COMIT operation code</td>
<td valign="top" headers="d0e28 ">ROLBK operation code</td>
</tr>
<tr><td valign="top" headers="d0e24 ">ILE COBOL/400<sup>®</sup></td>
<td valign="top" headers="d0e26 ">COMMIT verb</td>
<td valign="top" headers="d0e28 ">ROLLBACK verb</td>
</tr>
<tr><td valign="top" headers="d0e24 ">ILE C/400<sup>®</sup></td>
<td valign="top" headers="d0e26 ">_Rcommit function</td>
<td valign="top" headers="d0e28 ">_Rrollbck function</td>
</tr>
<tr><td valign="top" headers="d0e24 ">PL/I</td>
<td valign="top" headers="d0e26 ">PLICOMMIT subroutine</td>
<td valign="top" headers="d0e28 "> PLIROLLBACK subroutine</td>
</tr>
<tr><td valign="top" headers="d0e24 ">SQL</td>
<td valign="top" headers="d0e26 "><a href="../db2/rbafzmstc4comit.htm">COMMIT statement</a></td>
<td valign="top" headers="d0e28 "><a href="../db2/rbafzmstrollbac.htm">ROLLBACK statement</a></td>
</tr>
<tr><td valign="top" headers="d0e24 ">SQL Call Level Interface (CLI)</td>
<td colspan="2" valign="top" headers="d0e26 d0e28 "><a href="../cli/rzadpfntrans.htm">SQLTransact()
function</a> (Use to commit and roll back a transaction)</td>
</tr>
<tr><td valign="top" headers="d0e24 ">XA APIs</td>
<td valign="top" headers="d0e26 "><img src="./delta.gif" alt="Start of change" />xa_commit() and <a href="../apis/dxacommi.htm">db2xa_commit()</a> APIs<img src="./deltaend.gif" alt="End of change" /></td>
<td valign="top" headers="d0e28 "><img src="./delta.gif" alt="Start of change" />xa_rollback() and <a href="../apis/dxarollb.htm">db2xa_rollback()</a> APIs<img src="./deltaend.gif" alt="End of change" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rzakjcommitops.htm">Commit operation</a></strong><br />
A commit operation makes permanent all changes made under commitment control since the previous commit or rollback operation. The system also releases all locks related to the transaction.</li>
<li class="ulchildlink"><strong><a href="rzakjrollbops.htm">Rollback operation</a></strong><br />
A rollback operation removes all changes made since the previous commit or rollback operation. The system also releases all locks related to the transaction.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakjconcepts.htm" title="This topic provides information to help you understand how commitment control works, how it interacts with your system, and how it interacts with other systems in your network.">Commitment control concepts</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../cli/rzadpkickoff.htm">SQL call level interface</a></div>
<div><a href="../dbp/rbafokickoff.htm">Database programming</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../books/c0918120.pdf" target="_blank">COBOL/400 user's guide PDF</a></div>
<div><a href="../books/c0918160.pdf" target="_blank">RPG/400 user's guide PDF</a></div>
<div><a href="../books/sc092712.pdf" target="_blank">WebSphere development studio: ILE C/C++ programmer's guide PDF</a></div>
<div><a href="../rbam6/clpro.htm">CL programming</a></div>
<div><a href="../apiref/api.htm">Application programming interfaces (APIs)</a></div>
</div>
</div>
</body>
</html>