Reclaim Temporary Storage (RCLTMPSTG)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Reclaim Temporary Storage (RCLTMPSTG) command allows you to reclaim storage used by temporarily decompressed copies of panel groups, menus, display files, and printer files, thereby freeing up system storage space.

Restrictions:

  1. This command is shipped with public *EXCLUDE authority and the QPGMR, QSYSOPR, QSRV, and QSRVBAS user profiles have private authorities to use the command.
  2. The user must have object management authority to the object specified and execute authority to the library.
Top

Parameters

Keyword Description Choices Notes
LIB Library Name, *ALL, *ALLUSR, *CURLIB, *LIBL, *USRLIBL Optional, Positional 1
DAYS Days unused 1-366, 7, *NONE Optional, Positional 2
Top

Library (LIB)

Specifies the name of the library from which storage is reclaimed. All temporarily decompressed objects that are in the library you specify on this parameter and that have not been used for more than the number of days you specify on the Days unused prompt (DAYS parameter) are reclaimed.

The possible library values are:

*ALL
All libraries in the system, including QSYS, are searched.
*LIBL
All libraries in the library list for the current thread are searched until the first match is found.
*USRLIBL
If a current library entry exists in the library list for the current thread, the current library and the libraries in the user portion of the library list are searched. If there is no current library entry, only the libraries in the user portion of the library list are searched.
*CURLIB
Only the current library is searched. If no current library entry exists in the library list, QGPL is used.
*ALLUSR
All user libraries are searched. All libraries with names that do not begin with the letter Q are searched except for the following:

#CGULIB     #DSULIB     #SEULIB
#COBLIB     #RPGLIB
#DFULIB     #SDALIB

Although the following Qxxx libraries are provided by IBM, they typically contain user data that changes frequently. Therefore, these libraries are considered user libraries and are also searched:

QDSNX       QRCLxxxxx   QUSRIJS     QUSRVxRxMx
QGPL        QSRVAGT     QUSRINFSKR
QGPL38      QSYS2       QUSRNOTES
QMGTC       QSYS2xxxxx  QUSROND
QMGTC2      QS36F       QUSRPOSGS
QMPGDATA    QUSER38     QUSRPOSSA
QMQMDATA    QUSRADSM    QUSRPYMSVR
QMQMPROC    QUSRBRM     QUSRRDARS
QPFRDATA    QUSRDIRCL   QUSRSYS
QRCL        QUSRDIRDB   QUSRVI

  1. 'xxxxx' is the number of a primary auxiliary storage pool (ASP).
  2. A different library name, in the format QUSRVxRxMx, can be created by the user for each previous release supported by IBM to contain any user commands to be compiled in a CL program for the previous release. For the QUSRVxRxMx user library, VxRxMx is the version, release, and modification level of a previous release that IBM continues to support.
library-name
Specify the name of the library to be searched.
Top

Days unused (DAYS)

Specifies the number of days an object has not been used or changed. If a temporarily decompressed object has not been used or changed for more than the specified number of days, it is reclaimed. If it has been used or changed, it is left temporarily decompressed.

The possible values are:

7
Objects that have not been used or changed for more than seven days are reclaimed.
*NONE
The object is reclaimed regardless of the number of days it has not been used or changed.
days-unused
Specify the number of days. Valid values range from 1 through 366.
Top

Examples

RCLTMPSTG   LIB(QGPL)

This command reclaims the space consumed by all of the temporarily decompressed copies of objects in library QGPL that have not been used or changed in the last 7 days.

Top

Error messages

*ESCAPE Messages

CPF2110
Library &1 not found.
CPF2113
Cannot allocate library &1.
CPF2176
Library &1 damaged.
CPF3B07
&1KB storage reclaimed, &5 objects not processed.
CPF9838
User profile storage limit exceeded.
Top