Create IBM MQ for IBM i objects
Use this information to understand the methods for creating IBM MQ objects for IBM i.
Before starting
The following tasks suggest various ways in which we can use IBM MQ for IBM i from the command line.
There are two online methods to create IBM MQ objects, which are:
Procedure
-
Using a Create command, for example: The Create MQM Queue command:
CRTMQMQ
-
Using a Work with MQM object command, followed by F6, for example: The Work with MQM
Queues command: WRKMQMQ
What to do next
For a list of all commands see
IBM MQ for IBM i CL commands.
Note: All MQM commands can be submitted from the Message Queue Manager Commands menu. To display
this menu, type GO CMDMQM on the command line and press the Enter
key.
The system displays the prompt panel automatically when you select a command from this menu.
To display the prompt panel for a command that we have typed directly on the command line, press
F4 before pressing the Enter key.
Parent topic: Manage IBM MQ for IBM i using CL commands
Create a local queue using the CRTMQMQ command
Procedure
-
Type CHGMQM on the command line and press the F4
key.
-
On the Create MQM Queue panel, type the name of the queue that we want to
create in the Queue name field. To specify a mixed case name, you enclose the name
in apostrophes.
-
Type *LCL in the Queue type field.
-
Specify a queue manager name, unless we are using the default queue manager, and press the
Enter key.
We can overtype any of the values with a new value. Scroll forward to see further fields. The
options used for clusters are at the end of the list of options.
-
When you have changed any values, press the Enter key to create the
queue.
Create a local queue using the WRKMQMQ command
Procedure
-
Type WRKMQMQ on the command line.
-
Enter the name of a queue manager.
-
To display the prompt panel, press F4. The prompt panel is useful
to reduce the number of queues displayed, by specifying a generic queue name or queue type.
-
Press Enter and the Work with MQM Queues panel
is displayed. We can overtype any of the
values with a new value. Scroll forward to see further fields. The options used for clusters are at
the end of the list of options.
-
Press F6 to create a new queue; this takes you to the
CRTMQMQ panel. See Create a local queue using the CRTMQMQ command for
instructions on how to create the queue. When you have created the queue, the Work with
MQM Queues panel is displayed again. The new queue is added to the list when you press
F5=Refresh.
Altering queue manager attributes
About this task
To alter the attributes of the queue manager specified on the CHGMQM
command, specifying the attributes and values that we want to change. For example, use the
following options to alter the attributes of jupiter.queue.manager:
Procedure
Type CHGMQM on the command line and press the F4 key.
Results
The command changes the dead-letter queue used, and enables inhibit events.