Creating IBM MQ for IBM i objects
Use this information to understand the methods for creating IBM MQ objects for IBM i.
Before you begin
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.
Creating 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 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 you 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 we have changed any values, press the Enter key to create the
queue.
Creating a local queue using the WRKMQMQ command
Procedure
-
Type WRKMQMQ on the command line.
-
Enter the name of a queue manager.
-
If you want 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 Creating a local queue using the CRTMQMQ command for
instructions on how to create the queue. When we 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 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.