DISPLAY PUBSUB
Use the MQSC command DISPLAY PUBSUB to display publish/subscribe status information for a queue manager.
Use MQSC commands
For information on how we use MQSC commands, see Performing local administration tasks using MQSC commands.
We can issue this command from sources 2CR. For an explanation of the source symbols, see Use commands on z/OS®.
Synonym: NoneDISPLAY PUBSUB




- 1 Valid only on z/OS.
- 2 Valid only on z/OS when the queue manager is a member of a queue-sharing group.
Parameter descriptions for DISPLAY PUBSUB
- TYPE
-
The type of
publish/subscribe connections.
- ALL
- Display the publish/subscribe status for this queue manager and for parent and child hierarchical connections.
- CHILD
- Display the publish/subscribe status for child connections.
- LOCAL
- Display the publish/subscribe status for this queue manager.
- PARENT
- Display the publish/subscribe status for the parent connection.
- CMDSCOPE
-
This parameter applies to z/OS only and
specifies how the command runs when the queue manager is a member of a queue sharing group.
- ' '
- The command runs on the queue manager on which it was entered. This is the default value.
- qmgr-name
- The command runs on the queue manager you specify, providing the queue manager is active within
the queue sharing group.
We can specify a queue manager name, other than the queue manager on which the command was entered, only if you are using a queue sharing group environment and if the command server is enabled.
- *
- The command runs on the local queue manager and is also passed to every active queue manager in the queue sharing group. The effect of this is the same as entering the command on every queue manager in the queue sharing group.
We cannot use CMDSCOPE as a filter keyword.
Returned parameters
A group of parameters is returned, containing the attributes TYPE, QMNAME, STATUS, SUBCOUNT, and TPCOUNT. This group is returned for the current queue manager if you set TYPE to LOCAL or ALL, for the parent queue manager if you set TYPE to PARENT or ALL, and for each child queue manager if you set TYPE to CHILD or ALL.
- TYPE
-
- CHILD
- A child connection.
- LOCAL
- Information for this queue manager.
- PARENT
- The parent connection.
- QMNAME
- The name of the current queue manager or the remote queue manager connected as a parent or a child.
- STATUS
- The status of the publish/subscribe engine or the hierarchical connection. The publish/subscribe engine is initializing and is not yet operational. If the queue manager is a member of a cluster (has at least one CLUSRCVR defined), it remains in this state until the cluster cache is available.
- SUBCOUNT
- When TYPE is LOCAL, the total number of subscriptions against the local tree is returned. When TYPE is CHILD or PARENT, queue manager relations are not inquired and the value NONE is returned.
- TPCOUNT
- When TYPE is LOCAL, the total number of topic nodes in the local tree is returned. When TYPE is CHILD or PARENT, queue manager relations are not inquired and the value NONE is returned.