DISCARD MQCONN

Remove an MQCONN resource definition. Any dynamically created MQMONITOR resource and any user-defined MQMONITOR resources are also discarded.

DISCARD MQCONN

Read syntax diagramSkip visual syntax diagramDISCARD MQCONN

Conditions: INVREQ, NOTAUTH, NOTFND

This command is threadsafe.

Description

The DISCARD MQCONN command removes an installed MQCONN resource definition from the local CICS® system. Only one MQCONN resource definition can be installed in a CICS system at a time, so no name or identifier is required on this command.

An MQCONN resource definition can be discarded only when CICS is not connected to WebSphere® MQ.

Discarding an MQCONN resource definition discards all installed MQMONITOR resources including any MQMONITOR resource that was dynamically installed because the MQCONN resource contains a valid queue name in the INITQNAME attribute.

Options

None

Conditions

INVREQ
RESP2 values:
2
CICS is connected to WebSphere MQ.
NOTAUTH
RESP2 values:
100
The user associated with the issuing task is not authorized to use this command.
NOTFND
RESP2 values:
1
An MQCONN resource definition cannot be found.