Initialize Distribution Queue (INZDSTQ)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Initialize Distribution Queue (INZDSTQ) command resets the status of a distribution queue and the entries on the queue. It also optionally clears all distributions on the queue. This command applies to both the normal and high priority sections of the specified queue.

Attention: Initializing a distribution queue can result in the loss or duplication of distributions in the network, depending on the status of the distributions in transit at the time this command is run.

Initializing a distribution queue includes the following:

Distribution queue names are translated to the graphic character set and code page 930 500, using the job's coded character set identifier (CCSID).

Restrictions:

Top

Parameters

Keyword Description Choices Notes
DSTQ Distribution queue Character value Required, Positional 1
CLEAR Clear queue entries *NO, *YES, *PURGE Optional
Top

Distribution queue (DSTQ)

Specifies the name of the distribution queue to initialize. The queue must be previously configured using the Configure Distribution Services (CFGDSTSRV) or the Add Distribution Queue (ADDDSTQ) command.

This is a required parameter.

Top

Clear queue entries (CLEAR)

Specifies whether distributions on the queue are deleted.

Attention: Using the *PURGE value results in the loss of distributions with no trace.

The possible values are:

*NO
Distributions on the queue are not deleted.
*YES
Distributions on the queue are deleted. Each deleted distribution is logged and, if the distribution originator requested notification, a notification is sent to the originator or to the report destination specified in the distribution.

Note: System Network Architecture distribution services (SNADS) status distributions and distribution reports are used to report information about a distribution back to the originator. Status report distributions never result in another status report distribution. If a status report distribution is deleted, no notification is sent.

*PURGE
Distributions on the queue are deleted. Deleted distributions are not logged and no notification is sent to the originator or to the report destination specified in the distribution.
Top

Examples

Example 1: Initializing a Distribution Queue

INZDSTQ   DSTQ('SYSTEMA APPN')

Connection information is about to be changed for system 'SYSTEMA APPN' by a central site administrator. This command initializes the queue to avoid error conditions that can be encountered by the Change Distribution Queue (CHGDSTQ) command. Distributions on the queue are not deleted.

Example 2: Initializing and Clearing a Distribution Queue

INZDSTQ   DSTQ('ERRORQ')  CLEAR(*YES)

This command clears the distribution queue ERRORQ that is being used as a repository for distributions that would have resulted in routing errors. Distributions that are deleted are logged, and the originators of the distributions are notified.

Example 3: Initializing and Purging a Distribution Queue

INZDSTQ   DSTQ('TESTQ')  CLEAR(*PURGE)

This command clears the distribution queue TESTQ that is being used for testing a new batch application. Distributions are deleted but not logged, and the originators are not notified.

Top

Error messages

*ESCAPE Messages

CPF8802
Distribution queue &1 was not found.
CPF8807
Error occurred while using QSNADS journal.
CPF8809
Errors detected on SNADS internal queues.
CPF8812
Error occurred while processing distribution queues.
CPF8849
Queue &1 in use by another distribution services function.
CPF9845
Error occurred while opening file &1.
CPF9846
Error while processing file &1 in library &2.
Top