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 |
Keyword | Description | Choices | Notes |
---|---|---|---|
DSTQ | Distribution queue | Character value | Required, Positional 1 |
CLEAR | Clear queue entries | *NO, *YES, *PURGE | Optional |
Top |
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 |
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:
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.
Top |
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 |
*ESCAPE Messages
Top |