Reclaim Storage (RCLSTG) command

You can use the RCLSTG command to recover the addressability of lost or damaged objects. This allows you to identify and then restore those objects that were damaged.

If an authorization list is found damaged during reclaim storage, the objects secured by the damaged authorization list are associated with the system authorization list QRCLAUTL.

The RCLSTG command has four parameters. These parameters allow you to perform reclaim functions in the following ways:

SELECT
Specifies all or a subset of the reclaim functions that are performed.
OMIT
Specifies the subset of the reclaim functions that are omitted.
ASPDEV
  • Reclaim the system auxiliary storage pool (ASP) and all basic ASPs. The system ASP has an ASP number of 1. Basic ASPs have ASP numbers of 2 through 32.
  • Reclaim a specific independent ASP. Independent ASPs have a device name and a number greater than 32.
ESTIMATE
Start of change Estimates the amount of time that a RCLSTG command will take to run. The estimate is calculated by using statistics collected during previous RCLSTG operations. The statistics are contained in data area QRCLSTG in library QUSRSYS.End of change
Note: The RCLSTG procedure requires auxiliary storage. If you are already using a very high percentage of auxiliary storage, the RCLSTG procedure might not complete successfully.

What happens when you reclaim storage: The purpose of the RCLSTG command is to ensure the following states:

The system checks every object that resides permanently in auxiliary storage for loss or damage.

What to do after running the rclstg procedure: Table 1 describes both where to look for problems that the RCLSTG procedure detects and how to correct the problems:

Table 1. Resolving problems detected by the RCLSTG procedure
Where to look for problems How to fix the problem
Type DSPMSG QSYSOPR to display the QSYSOPR message queue. Look for messages about damaged objects. Type DSPLOG QHST to display the history log. Look for messages about either damaged objects or rebuilt files.
  1. Delete unusable objects by using the appropriate DLTxxx command. Restore them by using the Restore Object (RSTOBJ) or Restore Object (RST) command.
  2. Copy data from rebuilt files to new files by using the Copy File (CPYF) command.
Note: You might see a message indicating that objects were deleted by the reclaim storage procedure. These are internal system objects that are no longer needed.
Type DSPLIB QRCL to display the QRCL library.
Note: If the reclaim storage procedure did not place any objects in the QRCL library, you might receive a message that the library is not found. Ignore the message and continue with the next step.
Move objects from the QRCL library to the correct library by using the Move Object (MOVOBJ) command.
Note:
  • If IBM-supplied objects are in the QRCL library, contact software support for assistance.
  • If you are unsure what to do with objects in the QRCL library, use the Save Library (SAVLIB) command to save the library to save media. Mark the media volume in case you need the objects later.
Display the /QReclaim directory by using the Display Link (DSPLNK) command.
Note: If the reclaim storage procedure did not place any objects in the /QReclaim directory, you might receive a message that the object is not found. Ignore the message and continue with the next step.
Move objects from the /QReclaim directory to the correct directory by using the Move (MOV) command.
Display the /QOpenSys/QReclaim directory by using the Display Link (DSPLNK) command.
Note: If the reclaim storage procedure did not place any objects in the /QOpenSys/QReclaim directory, you might receive a message that the object is not found. Ignore the message and continue with the next step.
Move objects from the /QOpenSys/QReclaim directory to the correct directory by using the MOV command.
Type DSPMSG QSYSOPR to display the QSYSOPR message queue. Look for CPFA0D7 messages. For each CPFA0D7 message that contains a directory name beginning with '/dev/QASPxx/' (where 'xx' is the number of a system or basic ASP) or '/dev/iasp-name' (where iasp-name is the name of an independent ASP), perform the action specified in the "How to fix the problem" column. Use the Add Mounted File System (ADDMFS) command to mount the UDFS specified in the CPFA0D7 message over a directory of your choice. Then use the Display Link (DSPLNK) command to view the contents of this UDFS. You might see objects with names beginning with 'QRCL' or you might see a directory named 'QReclaim'. If you see the 'QReclaim' directory, look inside it to find the object names beginning with 'QRCL'. These objects were previously lost but have been relocated by the RCLSTG command. Use the Move (MOV) command to move these objects back to their original location. The original object names can be specified in the CPFA0D7 message. If the original names are not available, use the "Display Attributes" option in DSPLNK to view an object's attributes in order to attempt to identify it.
Type WRKOBJOWN QDFTOWN to display objects that are owned by the QDFTOWN user profile. Use option 9 (Change owner) from the Work with Objects by owner display to transfer ownership to the correct user profile.
Type DSPAUTLOBJ QRCLAUTL to display objects that are secured by the QRCLAUTL authorization list.
Note: If the reclaim storage procedure did not assign any objects to the QRCLAUTL authorization list, you might receive a message that the authorization list is not found. Ignore the message.
If necessary, assign the object to the correct authorization list by using the Edit Object Authority (EDTOBJAUT) command.