You can start the connection to WebSphere® MQ by issuing an EXEC CICS SET MQCONN
command in a CICS® application program.

About this task
The SET MQCONN CONNECTED
command starts all installed MQMONITOR resources that have the attributes AUTOSTART(YES) and
STATUS(ENABLED), including the MQMONITOR resource DFHMQINI that is dynamically created when the
MQCONN attribute INITQNAME contains valid data.
Procedure
Results
If the requested queue manager is active, control returns when CICS and WebSphere MQ are
connected. If the requested queue manager is not active, CICS returns a NORMAL response with RESP2=8, indicating that the CICS-WebSphere MQ adapter is in connecting state and will connect to WebSphere
MQ as soon as the requested queue manager becomes active.
What to do next
If you specify your own value for MQNAME, the queue manager name or queue-sharing group
that you specified in the MQNAME attribute of the installed MQCONN resource definition is
replaced with the name that you specified on this command. To revert to the original queue
manager or queue-sharing group, set MQNAME again.