Home
Displaying default object attributes
When you define a WebSphere MQ object, it takes any attributes that you do not specify from the default object. For example, when you define a local queue, the queue inherits any attributes that you omit in the definition from the default local queue...
SYSTEM.DEFAULT.LOCAL.QUEUETo see attributes...
DISPLAY QUEUE (SYSTEM.DEFAULT.LOCAL.QUEUE)The syntax of this command is different from that of the corresponding DEFINE command. On the DISPLAY command we can give just the queue name, whereas on the DEFINE command you have to specify the type of the queue, that is, QLOCAL, QALIAS, QMODEL, or QREMOTE.
We can selectively display attributes by specifying them individually...
DISPLAY QUEUE (ORANGE.LOCAL.QUEUE) + MAXDEPTH + MAXMSGL + CURDEPTH;This command displays the three specified attributes as follows:
AMQ8409: Display Queue details. QUEUE(ORANGE.LOCAL.QUEUE) TYPE(QLOCAL) CURDEPTH(0) MAXDEPTH(5000) MAXMSGL(4194304)CURDEPTH is the current queue depth, that is, the number of messages on the queue. This is a useful attribute to display, because by monitoring the queue depth we can ensure that the queue does not become full.
Parent topic:
Work with local queuesHome