Working with queue managers
Examples of MQSC commands that you can use to display or alter queue manager attributes.
Displaying queue manager attributes
To display the attributes of the queue manager specified on the runmqsc command, use the following MQSC command:
DISPLAY QMGR
Typical output from this command is shown in Figure 1
The ALL
parameter is the default on
the DISPLAY QMGR
command. It displays all the queue
manager attributes. In particular, the output tells you the default
queue manager name, the dead-letter queue name, and the command queue
name.
You can confirm that these queues exist by entering the
command:
DISPLAY QUEUE (SYSTEM.*)
This displays a list of queues that match the stem SYSTEM.*
. The parentheses are required.
Altering queue manager attributes
To alter
the attributes of the queue manager specified on the runmqsc command, use the MQSC command
ALTER QMGR
, specifying
the attributes and values that you want to change. For example, use
the following commands to alter the attributes of jupiter.queue.manager
: runmqsc jupiter.queue.manager
ALTER QMGR DEADQ (ANOTHERDLQ) INHIBTEV (ENABLED)
The ALTER QMGR
command changes
the dead-letter queue used, and enables inhibit events.