Stop Service

The Stop Service (MQCMD_STOP_SERVICE) command stops an existing IBM® MQ service definition that is running.

HP Integrity NonStop Server IBM i UNIX and Linux® Windows z/OS®
  X X X  

Required parameters

ServiceName (MQCFST)
Service name (parameter identifier: MQCA_SERVICE_NAME).

This parameter is the name of the service definition to be stopped. The maximum length of the string is MQ_OBJECT_NAME_LENGTH.

Error codes

This command might return the following error codes in the response format header, in addition to the values shown on page Error codes applicable to all commands.

Reason (MQLONG)
The value can be any of the following values:
MQRCCF_NO_STOP_CMD
The StopCommand parameter of the service is blank.
MQRCCF_SERVICE_STOPPED
Service is not running.