[IBM i]

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 you can use IBM MQ for IBM i from the command line.

About this task

There are two online methods to create IBM MQ objects, which are:

Procedure

  1. Using a Create command, for example: The Create MQM Queue command: CRTMQMQ
  2. 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 you have typed directly on the command line, press F4 before pressing the Enter key.

Creating a local queue using the CRTMQMQ command

Procedure

  1. Type CHGMQM on the command line and press the F4 key.
  2. On the Create MQM Queue panel, type the name of the queue that you want to create in the Queue name field. To specify a mixed case name, you enclose the name in apostrophes.
  3. Type *LCL in the Queue type field.
  4. Specify a queue manager name, unless you are using the default queue manager, and press the Enter key. You 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.
  5. When you have changed any values, press the Enter key to create the queue.

Creating a local queue using the WRKMQMQ command

Procedure

  1. Type WRKMQMQ on the command line.
  2. Enter the name of a queue manager.
  3. 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.
  4. Press Enter and the Work with MQM Queues panel is displayed. You 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.
  5. 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 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 you 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.