Send Distribution Queue (SNDDSTQ)

The Send Distribution Queue (SNDDSTQ) command is used:

The SNDDSTQ command is primarily intended for use in a batch CL program. The SNDDSTQ command enables the same functions as option 2 (Send distribution queue) on the Work with Distribution Queue (WRKDSTQ) command main list panel. The SNDDSTQ command allows the functions to be started from a batch job instead of interactively.

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:

Parameters

Keyword Description Choices Notes
DSTQ Distribution queue Character value Required, Positional 1
PTY Priority *NORMAL, *HIGH Required, Positional 2

Distribution queue (DSTQ)

Specifies the name of the distribution queue that is sent. The queue must have been previously configured using the Configure Distribution Services (CFGDSTSRV) command or the Add Distribution Queue (ADDDSTQ) command.

This is a required parameter.

Priority (PTY)

Specifies whether the normal priority or high priority portion of the specified queue is sent.

The possible values are:

*NORMAL
The normal priority queue is for those distributions with a service level of data low.
*HIGH
The high priority queue is for those distributions with a service level of fast, status, or data high.

Note: This value is not valid for a SystemView distribution services (SVDS) type of distribution queue.

This is a required parameter.

Examples

Example 1: Sending Distributions with Normal Priority

SNDDSTQ   DSTQ(CHICAGO)  PTY(*NORMAL)

This command sends distributions from the normal priority portion of the CHICAGO distribution queue.

Example 2: Sending Distributions with High Priority

SNDDSTQ   DSTQ(ATLANTA)  PTY(*HIGH)

This command sends distributions from the high priority portion of the ATLANTA distribution queue.

Error messages

*ESCAPE Messages

CPF8802
Distribution queue &1 was not found.
CPF8805
Special value for System name/Group not permitted or not used correctly.
CPF8806
Value &1 not valid for system name or system group.
CPF881C
High priority queue not allowed for *SVDS distribution queue &1
CPF8812
Error occurred while processing distribution queues.
CPF8816
QSNADS communications subsystem is not active.
CPF8817
Distribution queue is held.
CPF9845
Error occurred while opening file &1.
CPF9846
Error while processing file &1 in library &2.
CPF9847
Error occurred while closing file &1 in library &2.