Hold Output Queue (HLDOUTQ)

The Hold Output Queue (HLDOUTQ) command prevents all currently waiting spooled files, and all spooled files that are added to the output queue after the command is issued, from being processed by a spooling writer. This command has no effect on jobs currently running and adding spooled files to the output queue. It also has no effect on the spooled output that is being produced by a spooling writer at the time the command is issued. When the spooling writer completes all copies of the current output file, it cannot begin the output for any other files until the queue is released.

Parameters

Keyword Description Choices Notes
OUTQ Output queue Qualified object name Required, Positional 1
Qualifier 1: Output queue Name
Qualifier 2: Library Name, *LIBL, *CURLIB

Output queue (OUTQ)

Specifies the name of the output queue that will have its current and future spooled files withheld from further processing.

This is a required parameter.

Qualifier 1: Output queue

name
Specify the name of the output queue to hold.

Qualifier 2: Library

*LIBL
All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB
The current library for the job is used to locate the output queue. If no current library entry exists in the library list, QGPL is used.
name
Specify the name of the library where the output queue is located.

Examples

HLDOUTQ   OUTQ(QPRINT)

This command prevents the processing of the spooled files on the QPRINT queue and any spooled files added to the queue. They are held until the queue is released or cleared. A specific job (with its spooled files) can also be ended with the ENDJOB command, which removes the spooled files from the output queue.

Error messages

*ESCAPE Messages

CPF2207
Not authorized to use object &1 in library &3 type *&2.
CPF3330
Necessary resource not available.
CPF3357
Output queue &1 in library &2 not found.
CPF3426
Output queue &1 in library &2 already held.