[IBM i]

Clear MQ Topic String (CLRMQMTOP)

Where allowed to run
All environments (*ALL)
Threadsafe
Yes

The Clear MQ Topic String (CLRMQMTOP) command clears the specified topic string.

Parameters

Table 1. Command parameters
Keyword Description Choices Notes
TOPICSTR Topic string Character value Required, Positional 1
MQMNAME Message Queue Manager name Character value, *DFT Optional, Positional 2
CLRTYPE Clear type *RETAINED Optional, Positional 3

Topic string (TOPICSTR)

The topic string to be cleared.

The possible values are:

topic-string
Specify a maximum of 256 bytes for the topic string.

Note: Topic strings of greater than 256 bytes can be specified using MQSC.

Message Queue Manager name (MQMNAME)

Specifies the name of the Queue Manager.

The possible values are:

*DFT
Use the default Queue Manager.
queue-manager-name
The name of a Queue Manager.

Clear type (CLRTYPE)

The type of clear topic string to be performed.

The value must be:

*RETAINED
Remove the retained publication from the specified topic string.