Creating a transmission queue on IBM i

We can create a transmission queue on the IBM® i platform by using the Create MQM Queue panel.

You must define a local queue with the Usage field attribute set to *TMQ, for each sending message channel.

If you want to use remote queue definitions, use the same command to create a queue of type *RMT, and Usage of *NORMAL.

To create a transmission queue, use the CRTMQMQ command from the command line to present you with the first queue creation panel; see Figure 1.
Figure 1. Create a queue (1)
Create MQM Queue (CRTMQMQ)

Type choices, press Enter.

Queue name . . . . . . . . . . .

Queue type . . . . . . . . . . .  ____     *ALS, *LCL, *MDL, *RMT

Message Queue Manager name . . .  *DFT________________________________
_____










Bottom
F3=Exit  F4=Prompt  F5=Refresh  F12=Cancel  F13=How to use this display
F24=More keys
+

Type the name of the queue and specify the type of queue to create: Local, Remote, or Alias. For a transmission queue, specify Local ( *LCL) on this panel and press enter.

You are presented with the second page of the Create MQM Queue panel; see Figure 2.
Figure 2. Create a queue (2)
Create MQM Queue (CRTMQMQ)

Type choices, press Enter.

Queue name . . . . . . . . . . . > HURS.2.HURS.PRIORIT

Queue type . . . . . . . . . . . > *LCL     *ALS, *LCL, *MDL, *RMT
Message Queue Manager name . . .  *DFT
Replace . . . . . . . . . . . .  *NO      *NO, *YES
Text 'description' . . . . . . .  '                 '
Put enabled . . . . . . . . . .  *YES     *SYSDFTQ, *NO, *YES
Default message priority . . . .  0       0-9, *SYSDFTQ
Default message persistence . .  *NO      *SYSDFTQ, *NO, *YES
Process name . . . . . . . . . .  '                 '
Triggering enabled . . . . . . .  *NO      *SYSDFTQ, *NO, *YES
Get enabled . . . . . . . . . .  *YES     *SYSDFTQ, *NO, *YES
Sharing enabled . . . . . . . .  *YES     *SYSDFTQ, *NO, *YES




More...
F3=Exit  F4=Prompt  F5=Refresh  F12=Cancel  F13=How to use this display
F24=More keys

Change any of the default values shown. Press page down to scroll to the next screen; see Figure 3.
Figure 3. Create a queue (3)
Create MQM Queue (CRTMQMQ)

Type choices, press Enter.

Default share option . . . . . .  *YES     *SYSDFTQ, *NO, *YES
Message delivery sequence . . .  *PTY     *SYSDFTQ, *PTY, *FIFO
Harden backout count . . . . . .  *NO      *SYSDFTQ, *NO, *YES
Trigger type . . . . . . . . . .  *FIRST    *SYSDFTQ, *FIRST, *ALL...
Trigger depth . . . . . . . . .  1       1-999999999, *SYSDFTQ
Trigger message priority . . . .  0       0-9, *SYSDFTQ
Trigger data . . . . . . . . . .  '                 '
Retention interval . . . . . . .  999999999   0-999999999, *SYSDFTQ
Maximum queue depth . . . . . .  5000     1-24000, *SYSDFTQ
Maximum message length . . . . .  4194304    0-4194304, *SYSDFTQ
Backout threshold . . . . . . .  0       0-999999999, *SYSDFTQ
Backout requeue queue . . . . .  '                 '
Initiation queue . . . . . . . .  '                 '



More...
F3=Exit  F4=Prompt  F5=Refresh  F12=Cancel  F13=How to use this display
F24=More keys

Type *TMQ, for transmission queue, in the Usage field of this panel, and change any of the default values shown in the other fields.
Figure 4. Create a queue (4)
Create MQM Queue (CRTMQMQ)

Type choices, press Enter.

Usage . . . . . . . . . . . . .  *TMQ     *SYSDFTQ, *NORMAL, *TMQ
Queue depth high threshold . . .  80      0-100, *SYSDFTQ
Queue depth low threshold . . .  20      0-100, *SYSDFTQ
Queue full events enabled . . .  *YES     *SYSDFTQ, *NO, *YES
Queue high events enabled . . .  *YES     *SYSDFTQ, *NO, *YES
Queue low events enabled . . . .  *YES     *SYSDFTQ, *NO, *YES
Service interval . . . . . . . .  999999999   0-999999999, *SYSDFTQ
Service interval events . . . .  *NONE     *SYSDFTQ, *HIGH, *OK, *NONE
Distribution list support . . .  *NO      *SYSDFTQ, *NO, *YES
Cluster Name . . . . . . . . . .  *SYSDFTQ
Cluster Name List . . . . . . .  *SYSDFTQ
Default Binding . . . . . . . .  *SYSDFTQ   *SYSDFTQ, *OPEN, *NOTFIXED





Bottom
F3=Exit  F4=Prompt  F5=Refresh  F12=Cancel  F13=How to use this display
F24=More keys

When you are satisfied that the fields contain the correct data, press enter to create the queue.