Option (OPTION)
Specifies whether processes that are connected to the queue manager are
allowed to complete.
The possible values are:
- *CNTRLD
- Allow programs currently being processed to complete. An MQCONN call
(or an MQOPEN or MQPUT1, which perform an implicit connection) fails. If
ENDCCTJOB(*YES) is specified, a controlled shutdown of the queue manager is
attempted ten times. If the queue manager shuts down successfully, it is
followed by immediate termination of the processes that are still connected
to it.
- *IMMED
- End the queue manager immediately. All current MQI calls complete,
but subsequent requests for MQI calls fail. Incomplete units of work are
rolled back when the queue manager is next started. If ENDCCTJOB(*YES) is
specified, a controlled shutdown of the queue manager is followed if necessary,
after an interval of TIMEOUT seconds, by an immediate shutdown of the queue
manager. This is followed by immediate termination of processes connected
to it.
- *WAIT
- End the queue manager in the same way as the *CNTRLD option. However,
control is returned only after the queue manager has stopped. This option
is not allowed with MQMNAME(*ALL). If ENDCCTJOB(*YES) is specified, a single
controlled shutdown of the queue manager is issued, which waits for all processes
to disconnect. When this completes it is followed by the actions described
in the ENDCCTJOB parameter.
- *PREEMPT
- Use this type of shutdown only in exceptional circumstances The queue manager stops without waiting for applications to disconnect
or for MQI calls to complete. This can give unpredictable results for WebSphere(R) MQ applications. All processes in the queue manager that fail
to stop are ended 30 seconds after the command is issued. This option is
not allowed with ENDCCTJOB(*YES).