Il sistema operativo, a partire solo dalla V5R4, offre la possibilità di eliminare files spool creati dagli utenti, che hanno raggiunto una certa "anzianità", definendone i parametri.
Allegato qua sotto troviamo un articolo pubblicato sul sito systeminetwork (link originale http://systeminetwork.com/article/using-spooled-file-expiration-dates-take-out-trash
), che descrive l'utilizzo del comando DLTEXPSPLF.
Qui si trova la documentazione IBM del comando DLTEXPSPLF http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/cl/dltexpsplf.htm
Using Spooled File Expiration Dates - Take out the Trash #
We have always had the capability to use the CLEANUP menu to specify how long to keep joblogs and other system output on the system. However, there was never any CL command to purge old user created spooled files. V5R4 now provides the capability to specify an expiration date, or number of days to keep a spooled file on the system. That capability, tied to the new CL command DLTEXPSPLF(Delete expired spooled files), gives us the solution.
When a spooled file is initially created, it's attributes mainly come from a printer file definition. The commands for creating and modifying printer file and spooled file attributes have been updated to allow for the specification of an expiration date, or number of days before a spooled file expires.
For example, here is a command to specify that the spooled file created using this printer file definition expires in 30 days from creation. The spooled file expires at 23:59:59 on the expiration date.
CHGPRTF FILE(TESTLIB/REPORT1) EXPDATE(*DAYS) DAYS(30)
To delete the all the expired spooled files on the system, you can run the command DLTEXPSPLF as in the example.
DLTEXPSPLF ASPGRP(*ALL)