ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/rollback.htm

101 lines
3.7 KiB
HTML

<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Rollback (ROLLBACK)</title>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body bgcolor="white">
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<a name="ROLLBACK.Top_Of_Page"></a>
<h2>Rollback (ROLLBACK)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>Yes
</td>
<td valign="top" align="right">
<a href="#ROLLBACK.PARAMETERS.TABLE">Parameters</a><br>
<a href="#ROLLBACK.COMMAND.EXAMPLES">Examples</a><br>
<a href="#ROLLBACK.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="ROLLBACK"></a>
<p>The Rollback (ROLLBACK) command is used to restart the current transaction and reestablish the last commitment boundary as the current commitment boundary for the commitment definition associated with the program issuing the command.
</p>
<p>When the ROLLBACK command is issued:
</p>
<ul>
<li>Changes made to database files and other commitment resources under commitment control for the commitment definition since the last commitment boundary was established are rolled back. Updates, additions, or deletions made to the database file's data since that commitment boundary are rolled back or removed, and the original entries are put back in the files. Records that were added to the files remain as deleted records. The files are repositioned to the last commitment boundary. Changes made to other commitment resources are rolled back as well.
</li>
<li>All record locks held for files opened under commitment control for the commitment definition are released.
</li>
<li>Locks on object level commitment control resources, acquired when the resources were created or changed during the transaction, are released.
</li>
</ul>
<p>More information on commitment control is in the "Commitment control" article is in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p>There are no parameters for this command.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#ROLLBACK.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="ROLLBACK.PARAMETERS.TABLE">Parameters</a></h3>None<br>
<table width="100%">
<tr><td align="right"><a href="#ROLLBACK.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<hr size="2" width="100%">
<div><h3><a name="ROLLBACK.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
ROLLBACK
</pre>
</p>
<p>This command reestablishes the last commitment boundary (the point at which a Commit (COMMIT) command or Rollback (ROLLBACK) command was last issued) for the commitment definition associated with the program issuing the command.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#ROLLBACK.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="ROLLBACK.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF83D0</b></dt>
<dd>Commitment operation not allowed.
</dd>
<dt><b>CPF835F</b></dt>
<dd>Commit or rollback operation failed.
</dd>
<dt><b>CPF8350</b></dt>
<dd>Commitment definition not found.
</dd>
<dt><b>CPF8359</b></dt>
<dd>Rollback operation failed.
</dd>
<dt><b>CPF8367</b></dt>
<dd>Cannot perform commitment control operation.
</dd>
</dl>
<p><b><u>*STATUS Messages</u></b>
</p>
<dl>
<dt><b>CPF83E6</b></dt>
<dd>Commitment control operation completed with resynchronization in progress.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ROLLBACK.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>