No history yet

Advanced Queue Architecture

Queue Security and Authority

An output queue on IBM i is more than a simple folder for reports; it's a controlled object with a distinct security model. Every queue has an owner and can grant permissions to the public. Understanding the difference is key to managing who can see and manipulate sensitive output.

The owner of the queue has implicit authority to do everything: read, add, and remove spool files, and manage the queue itself. Public authority is what you grant to everyone else. The most critical parameter governing this interaction is the Authority Check (AUTCHK) setting.

Parameter ValueDescription
*OWNEROnly the queue owner and the spool file owner can work with the file.
*DTAAUTIn addition to owners, users with data authority to the queue can access the files.
*AUTLAccess is determined by an associated authorization list.

The AUTCHK parameter determines how the system checks a user's permission to access spool files within the queue. Setting AUTCHK(*OWNER) is the most restrictive. It ensures that only the person who created a spool file (or the queue's owner) can interact with it, even if other users have broad access to the queue itself.

-- Change an existing output queue to use the strictest authority check
CHGOUTQ OUTQ(QGPL/FINANCE) AUTCHK(*OWNER)

This simple change prevents users from viewing each other's reports in the FINANCE queue, a common requirement for payroll or accounting departments.

Spool File Storage

By default, all spool file data is stored in the system's main storage pool, known as the system ASP. The data lives within database files in the QSPL library. For most environments, this is fine. But for systems generating enormous volumes of output, this can create performance bottlenecks and management headaches.

This is where Independent Auxiliary Storage Pools (IASPs) come in. An IASP is essentially a separate, self-contained disk pool that can be brought online or taken offline independently of the main system. Moving a high-volume output queue to an IASP isolates its disk activity. Heavy printing or report generation won't compete for disk resources with your core applications.

This architecture also simplifies backup and recovery. You can save the entire IASP containing just your critical report data without having to run a full system save.

Order and Performance

How you order files on a queue might seem like a minor preference, but it has a real impact on system performance, especially on very busy queues. The SEQ (Sequence) parameter on the output queue controls this behavior.

The two primary options are *FIFO (First-In, First-Out) and *JOBNBR (Job Number).

With *FIFO, spool files are ordered chronologically. When a new file is added, the system simply appends it to the end of an internal list. This is very fast and efficient.

With *JOBNBR, the system must maintain a sorted index based on the job number, user, and job name. Every time a new spool file is created, the system has to insert it into the correct position in this index to maintain the sorted order. On a queue that receives thousands of files an hour, the overhead of constantly re-sorting this index can become noticeable.

A final consideration is the underlying database file that holds the spool data. Each output queue uses a database file member to store its entries. A single database file member has a hard limit on how many records it can hold, roughly 4.2 billion. While you're unlikely to hit this, it's a fundamental architectural limit. If a queue fills up, the system automatically extends it by adding a new member to the database file QSPL.Q00001 in the QSPL library. This is handled automatically, but it highlights the robust database foundation that underpins the entire spooling subsystem.

Quiz Questions 1/5

In an IBM i output queue, what is the primary purpose of setting the Authority Check parameter to AUTCHK(*OWNER)?

Quiz Questions 2/5

A company's nightly batch processing generates thousands of large reports, causing disk performance issues for other critical applications. Which strategy would most effectively isolate the disk activity from this report generation?

These advanced settings allow you to fine-tune your IBM i environment for security, performance, and scalability, turning a simple output queue into a highly managed component of your infrastructure.