Starting a CICS-MQ connection by using EXEC CICS SET MQCONN from a CICS application program
You can start the connection to IBM® MQ by issuing an EXEC CICS SET MQCONN command in a CICS® application program.
About this task
Procedure
Results
If the requested queue manager is active, control returns when CICS and IBM MQ are connected. If the requested queue manager is not active, CICS returns a NORMAL response with RESP2=8, indicating that the CICS-MQ adapter is in connecting state and will connect to IBM 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.