Command reference / system

RCLSTG

Reclaim Storage

The Reclaim Storage (RCLSTG) command corrects, where possible, objects that were incompletely updated (such as database files, libraries, device descriptions, directories and stream files) and user profiles containing incorrectly recorded object ownership information. Any unusable objects or fragments are deleted. This command reclaims all objects secured by an authorization list that is damaged or destroyed and assigns the objects to the authorization list QRCLAUTL. Because the amount of time required to run this command varies with the number of objects in auxiliary storage, the system will display a panel to the work station where the command was specified, showing the progress of the command's execution. The 'Time Remaining' column will show blanks for a RCLSTG step if no statistics have been collected yet that would enable the RCLSTG command to estimate the total time required for that step. You can specify *YES for the ESTIMATE parameter to get an estimate of how long the RCLSTG command will take to run. When ESTIMATE(*YES) is specified, messages that show the estimated amount of time are sent to the job log, and no reclaim function is performed. The RCLSTG command can also be used to reclaim storage when, during an IPL, not enough storage is available to make the system fully operational. In that case, the system operator can specify the command immediately after receiving the message about insufficient storage. If very little additional auxiliary storage is available, the system overhead required to run the RCLSTG command may need more than the remaining storage; in that case, the RCLSTG command fails. Note: The RCLSTG command can be a long-running function, depending on the number and type of objects in the system, and the amount of damage to them. Because RCLSTG touches each object multiple times, having enough memory can significantly reduce the time required to run RCLSTG. Conversely, having too little memory can lead to storage thrashing which can significantly increase the time required to run RCLSTG. If database file objects are damaged, the keyed access paths may need to be rebuilt; that operation takes a substantial amount of time. If the RCLSTG command can be run at the user's discretion, the user may want to avoid the operation until the required time can be scheduled. You can select to run just the directory recovery portion of RCLSTG by specifying SELECT(*DIR). This will reclaim only directories and objects related to the integrated file system. There are several reclaim commands that perform a subset of the RCLSTG's functions. These commands are: Reclaim Object Links (RCLLNK), Reclaim Database Cross-Reference (RCLDBXREF), Reclaim Objects by Owner (RCLOBJOWN), Reclaim Document Lib Object (RCLDLO), Reclaim Library (RCLLIB) and Reclaim Spool Storage (RCLSPLSTG). Refer to those commands for details on the functions that they perform.

Allowed environments: *ALL. Positional parameters: 1.

Restrictions

Parameters

SELECT Select

Specifies whether to perform all reclaim functions or only one specific reclaim function.

Type
*CHAR
Required
No
Default
*ALL
Length
10
Case
Uppercase

Suggested / special values: *ALL, *NODBXREF, *DBXREF

*ALL
All reclaim functions are performed including, but not limited to, database cross-reference table reclaim and directory recovery functions.
*DBXREF
Only the database cross-reference table reclaim function is performed.
*DIR
Only the directory recovery portion of the reclaim function is performed.

ASPDEV ASP device

Specifies the auxiliary storage pool (ASP) to be reclaimed.

Type
*NAME
Required
No
Default
*SYSBAS
Length
10
Case
Uppercase

Suggested / special values: *SYSBAS

*SYSBAS
The system ASP and all basic ASPs are reclaimed. The system ASP has an ASP number of 1. Basic ASPs have ASP numbers of 2 through 32.
auxiliary-storage-pool-device-name
The specified ASP device is reclaimed. ASP devices have ASP numbers greater than 32. Reclaim storage for an ASP device can be run without being in restricted state. The ASP device must be in the AVAILABLE or FAILED status to reclaim it. You can submit multiple jobs, each performing RCLSTG on a different ASP device, to reclaim multiple ASP devices in parallel.
auxiliary-storage-pool-group-name
The primary ASP and the secondary ASPs within the ASP group are reclaimed. The name of any ASP within the ASP group is accepted. Primary and secondary ASPs have ASP numbers greater than 32. Reclaim storage for an ASP group can be run without being in restricted state. The ASP device must be in the AVAILABLE or FAILED status to reclaim it. You can submit multiple jobs, each performing RCLSTG on a different ASP group, to reclaim multiple ASP groups in parallel.

Examples

RCLSTG

Reclaim Storage of the System ASP and All Basic ASPs. This command, specified interactively, locates all system objects. Objects without owners are given default owners, and those that are lost from their specified libraries are inserted into the QRCL library or the default library, or are deleted. The system moves lost directory objects into /QReclaim for the root file system or /QOpenSys/QReclaim for QOpenSys. Damaged and unusable objects can be deleted.

RCLSTG SELECT(*DBXREF)

Reclaim Storage to Reclaim the Database Cross-reference Table. This command reclaims the database cross-reference table.

RCLSTG OMIT(*DBXREF)

Reclaim Storage of the Entire System that Omits the Reclaim of the Database Cross-reference Table. This command performs all reclaim storage functions but omits the reclaim of the database cross-reference table.

RCLSTG OMIT(*DIR)

Reclaim Storage that Omits the Reclaim of the Directories. This command performs all reclaim storage functions but omits the reclaim of the directories.

RCLSTG ASPDEV(MYASPDEV)

Reclaim Storage of an ASP Device. This command reclaims storage for the ASP device name MYASPDEV.

RCLSTG SELECT(*DIR)

Reclaim Storage to Reclaim the Directory Portion of the System ASP and All Basic ASPs. Objects that are lost from their specified directories are inserted into the '/QReclaim' directory (if the object was originally located in the root file system) or the '/QOpenSys/QReclaim' directory (if the object was originally located in the QOpenSys file system).

RCLSTG SELECT(*DIR) ASPDEV(MYASPDEV)

Reclaim Storage to Reclaim the Directories of an ASP Device. This command reclaims directories for the ASP device name MYASPDEV.

RCLSTG ESTIMATE(*YES)

Estimate the Time that the Next Full RCLSTG Will Take to Run. This command estimates the time that the next full RCLSTG will take to run for each one of the major steps: Estimates cover disk reads, file ID table and directory recovery, and object description verification. The job log reports the estimates.

RCLSTG ESTIMATE(*YES) ASPDEV(MYASPDEV)

Estimate the Time that the Next RCLSTG of an ASP Device Will Take to Run. This command estimates the time that the next RCLSTG of ASP device name MYASPDEV will take. Messages are sent to the job log giving the estimated amount of time for each major RCLSTG step.

IBM command documentation

Generated from os/cl/catalog/RCLSTG.json and os/cl/help/RCLSTG.json.