Reports that never printed: find backed-up output queues

Somewhere on your system, a report finished generating days ago and never printed. The job ran. The spooled file landed in an output queue. Then nothing, because no writer was started to move it along. Nobody noticed, until someone asks where their report went. These are output queues that have a writer attached but not started.

Find the backed-up queues in one query:

SELECT OUTPUT_QUEUE_LIBRARY, OUTPUT_QUEUE_NAME,
      NUMBER_OF_FILES, OUTPUT_QUEUE_STATUS,
      WRITER_JOB_NAME
 FROM QSYS2.OUTPUT_QUEUE_INFO
WHERE NUMBER_OF_FILES > 0
ORDER BY NUMBER_OF_FILES DESC;

This lists every output queue holding files, fullest first, with the writer job attached to each.

Read the top of the list:

  • A queue with thousands of files and no writer is a backlog nobody is watching
  • A held queue is reports frozen in place until someone releases them
  • A queue filling faster than its writer clears it needs attention before it buries real output

An old spool is not harmless. It eats storage, it hides current reports in a pile of stale ones, and some of it holds data nobody should keep in printable form for years.

Run it this week. The queue at the top of your list has a story, and it is usually one worth knowing before a user finds it for you.

#IBMi #Power

Originally posted on LinkedIn. Join the conversation there.

Get new posts by email

Practical IBM i tips on SQL services, security and backup, sent when I publish. No spam, unsubscribe anytime.

Leave a Reply