[IBM i]

ENDMQMLSR (End MQ Listeners)

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

The End MQ Listener (ENDMQMLSR) command ends an MQ TCP/IP listener.

This command is valid only for TCP/IP transmission protocols.

Either a listener object or specific port can be specified.

Parameters

Table 1. Command parameters
Keyword Description Choices Notes
MQMNAME Message Queue Manager name Character value, *DFT Optional, Positional 1
PORT Port number 1-65535, *ALL Optional, Positional 2
OPTION Option *CNTRLD, *WAIT, *FORCE Optional, Positional 3
LSRNAME Listener name Character value, *NONE Optional, Positional 4

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 message queue manager.

Port number (PORT)

The port number to be used by the listener.

The possible values are:

*SAME
The attribute is unchanged.
port-number
The port number to be used.

Option (OPTION)

Specifies the action taken after processes to end the listeners have been started.

*CNTRLD
Processes are started to end all the listeners for the specified queue manager and control is returned before the listeners actually end.
*WAIT
End the listeners for the specified queue manager in the same way as the *CNTRLD option. However, control is returned only after all the listeners have ended.

Listener name (LSRNAME)

The name of the MQ listener object to end.

The possible values are:

*NONE
No listener object is specified.
listener-name
Specify the name of the listener definition. The maximum length of the string is 48 bytes.