There is a spooled file on your system right now from 2019. Probably thousands of them. They are taking up storage, cluttering your output queues, and quietly aging in place because deleting old spool is the chore nobody ever gets to.
You cannot manage what you cannot measure, so let’s measure it:
SELECT USER_NAME,
COUNT(*) AS SPOOL_COUNT,
SUM(SIZE) AS TOTAL_BYTES,
MIN(CREATE_TIMESTAMP) AS OLDEST
FROM QSYS2.OUTPUT_QUEUE_ENTRIES
GROUP BY USER_NAME
ORDER BY TOTAL_BYTES DESC;
That gives you spooled file counts and total storage by user, with the age of the oldest one in each group. The OLDEST column is usually where the eyebrows go up, because somewhere on that list is a report from years ago that has been sitting in an output queue since before half your current staff was hired.
Old spool is not just clutter. It is storage you are paying for, it makes your real output harder to find, and in a lot of shops it holds data that should not still be sitting around in printable form. That last point matters more than people think from a compliance standpoint. A years-old spooled file of customer statements is a data exposure nobody remembers creating. It is also a job on the system, but that is another article for another day.
Once you can see it, cleaning it up is straightforward, and it is the kind of housekeeping win that feels genuinely good. Find your worst offenders, confirm nothing current depends on them, and reclaim the space.
Small, satisfying, and overdue. A perfect Monday task.
#IBMi #Powersystems #SystemAdministration #IBMChampion
Originally posted on LinkedIn. Join the conversation there.
Leave a Reply