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

173 lines
7.8 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>Reclaim DB Cross-Reference (RCLDBXREF)</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="RCLDBXREF.Top_Of_Page"></a>
<h2>Reclaim DB Cross-Reference (RCLDBXREF)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#RCLDBXREF.PARAMETERS.TABLE">Parameters</a><br>
<a href="#RCLDBXREF.COMMAND.EXAMPLES">Examples</a><br>
<a href="#RCLDBXREF.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="RCLDBXREF"></a>
<p>The Reclaim Database Cross-Reference (RCLDBXREF) command recovers the database cross-reference catalog data for a specific library. This command provides a subset of the function provided by the Reclaim Storage (RCLSTG) command to reclaim the database cross-reference catalog data for the system by specifying SELECT(*DBXREF). The difference is that this command does not require the system to be in restricted state, and it supports a reclaim of a specific library, rather than all libraries on the system.
</p>
<p>Additionally this command provides an interface for the user to determine which catalogs have inconsistencies, and which libraries are affected.
</p>
<p>If an auxiliary storage pool (ASP) group has been set for the current thread, this command will take affect for the independent ASPs in that ASP group and also for the system and basic user ASPs (ASP numbers 1-32).
</p>
<p>This command should only be used when problems with the database cross-reference catalogs occur, and RCLSTG SELECT(*DBXREF) is not an option due to critical business requirements.
</p>
<p>Because this command does not need to run in restricted state, it may not always be able to recover cross-reference information. In such cases, running RCLSTG SELECT(*DBXREF) will be required.
</p>
<p>When the command is used to recover cross-reference information, the user must not allow applications to use or modify objects in a library that is being reclaimed. Failure to do this could cause unpredictable results.
</p>
<p>If RCLDBXREF does not correct the problem, the library being reclaimed may have more inconsistencies than existed before using this command. If this happens, running RCLSTG SELECT(*DBXREF) will be required.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>You must have all object (*ALLOBJ) special authority to use this command.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#RCLDBXREF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="RCLDBXREF.PARAMETERS.TABLE">Parameters</a></h3>
<table border="1" cellpadding="4" cellspacing="0">
<!-- col1="10" col2="15" col3="30" col4="10" -->
<tr>
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
</tr>
<tr>
<td valign="top"><a href="#RCLDBXREF.OPTION"><b>OPTION</b></a></td>
<td valign="top">Option</td>
<td valign="top"><b><u>*CHECK</u></b>, *FIX</td>
<td valign="top">Optional, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#RCLDBXREF.LIB"><b>LIB</b></a></td>
<td valign="top">Library</td>
<td valign="top"><i>Name</i>, <b><u>*ERR</u></b></td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#RCLDBXREF.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="RCLDBXREF.OPTION"></a>
<h3>Option (OPTION)</h3>
<p>Specifies what action the command will take. The command can either check for problems, or attempt to fix them.
</p>
<dl>
<dt><b><u>*CHECK</u></b></dt>
<dd>The command should check to see if any cross-reference catalog inconsistencies have been found. As each catalog is inspected, a diagnostic message (CPD32A7) is sent to the job log for each library known to have inconsistent data in that catalog. After all of the cross-reference catalogs have been checked, an escape message (CPF32AC) is signaled if problems were found. If no inconsistencies are found in the catalogs, a completion message (CPC32AC) is sent indicating the cross-reference data appears to be correct.
</dd>
<dt><b>*FIX</b></dt>
<dd>The command should attempt to fix the cross-reference data for the library specified for the <b> Library (LIB) </b> parameter.
<p>
<b>Note: </b>In some cases, the system may determine that a full reclaim of the database cross-reference catalogs is needed by running the Reclaim Storage (RCLSTG) command and specifying SELECT(*DBXREF). In this case, a CPF32AB escape message is sent and the library's cross-reference data will not be fixed.
</p>
<p>When the *FIX option is specified, the user must be careful not to interrupt the reclaim process, or to attempt to use or modify objects in a library that is being reclaimed. Failure to do this could cause the reclaim to fail. If the reclaim fails, that library may have more catalog inconsistencies than existed before invoking this command. If this happens, it may be possible to recover by using the command again. If this does not correct the problem, a Reclaim Storage DBXREF (RCLSTG SELECT(*DBXREF)) will be required.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RCLDBXREF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RCLDBXREF.LIB"></a>
<h3>Library (LIB)</h3>
<p>Specifies which library should be recovered.
</p>
<p>
<b>Note: </b>This parameter is only valid when *FIX is specified for the <b> Option (OPTION) </b> parameter.
</p>
<dl>
<dt><b><u>*ERR</u></b></dt>
<dd>Recovery should be attempted for all libraries known to have had errors in the cross-reference catalogs. The command will attempt to recover all cross-reference data for any library found having inconsistent data when RCLDBXREF was run previously with OPTION(*CHECK) specified.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library for which cross-reference data will be fixed. All cross-reference data for the specified library will be recovered, even if the library is not known to have inconsistent data in the catalogs for it. The library does not need to exist to be specified on this command.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RCLDBXREF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="RCLDBXREF.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Check for Cross-Reference Problems</b>
</p>
<p>
<pre>
RCLDBXREF OPTION(*CHECK)
</pre>
</p>
<p>This command checks the cross-reference catalogs for errors.
</p>
<p><b>Example 2: Recover the Cross-Reference Catalogs</b>
</p>
<p>
<pre>
RCLDBXREF OPTION(*FIX) LIB(*ERR)
</pre>
</p>
<p>This command recovers the cross-reference information for all libraries known to be in error.
</p>
<p><b>Example 3: Recover the Cross-Reference Catalog Data for One Library</b>
</p>
<p>
<pre>
RCLDBXREF OPTION(*FIX) LIB(ABCD)
</pre>
</p>
<p>This command recovers the cross-reference information for library ABCD.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#RCLDBXREF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="RCLDBXREF.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF32AB</b></dt>
<dd>Database cross-reference information not recovered.
</dd>
<dt><b>CPF32AC</b></dt>
<dd>Database cross-reference problem(s) exist.
</dd>
<dt><b>CPF32A4</b></dt>
<dd>Internal failure in system cross-reference program.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RCLDBXREF.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>