+

Search Tips | Advanced Search

Checking messages on a subscription

When a subscription is defined it is associated with a queue. Published messages matching this subscription are put to this queue.


About this task

Note that the following runmqsc commands show only those subscriptions that received messages.

To check for messages currently queued for a subscription perform the following steps:


Procedure

  1. To check for messages queued for a subscription type DISPLAY SBSTATUS(sub_name) NUMMSGS, see Displaying attributes of subscriptions.
  2. If the NUMMSGS value is greater than zero identify the queue associated with the subscription by typing DISPLAY SUB(sub_name)DEST.
  3. Using the name of the queue returned we can view the messages by following the technique described in Browsing queues.