CL Command Reference - RCLSPLSTG

CL Command List > RCLSPLSTG Reference

Description:

The Reclaim Spool Storage (RCLSPLSTG) command reclaims unused storage for spooled files that have not been used for more than the number of days specified by the user. Spooled files are stored with database file members on the system. When a spooled file is deleted, the member is emptied but not deleted. Therefore, the member can be reused for the next spool file created. Reusing empty members improves the performance time when creating new spooled files. The RCLSPLSTG command deletes unused and empty database members in the system auxiliary storage pool (ASP 1) and any basic user auxiliary storage pools (ASPs 2-32). The RCLSPLSTG command will not delete unused and empty database members in primary or secondary auxiliary storage pools (ASPs). The QRCLSPLSTG system value can be set to automatically delete unused and empty database members in primary or secondary ASPs. This command uses synchronous processing.

Restriction: To use this command, you must be signed on as QPGMR, QSYSOPR, QSRV, or QSRVBAS, or have *ALLOBJ authority.


Examples:

RCLSPLSTG DAYS(30)

This command reclaims all unused storage for spooled files that have remained unused for more than 30 days. When storage has been unused for 1 second over 30 days it is reclaimed because a date and time stamp is placed on the storage area.