SNDDSTQ (Send Distribution Queue)

SNDDSTQ Command syntax diagram

 

Purpose

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

  1. This command is shipped with public *EXCLUDE authority, and the QPGMR and QSYSOPR user profiles have private authorities to use the command.
  2. Messages that report errors about distribution queues may display or print different characters than the user entered for the distribution queue name because of internal system transformations. Similarly (depending on the language used for the work station), the internal value for a distribution queue name may differ from the characters shown on the Work with Distribution Queue (WRKDSTQ) command. An error may be reported if the character-string value specified for the DSTQ parameter does not match the rules for an internal distribution queue value or if it does not match the internal value for any defined distribution queue (ignoring case differences).

 

Required Parameters

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

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

*NORMAL: Sends the normal priority queue, which is for distributions with a service level of data low.

*HIGH: Sends the high priority queue, which is for distributions with a service level of fast, status, or data high.

Examples for SNDDSTQ

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 for SNDDSTQ

*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.