EXEC CICS and CEMT commands for the CICS-MQ connection and monitors

You can use EXEC CICS system programming interface (SPI) commands and CEMT commands to manage MQCONN and MQMONITOR resource definitions, start and stop the CICS®-MQ connection and MQ monitors, display information and statistics for the connection and MQ monitors, and purge tasks that are using the connection.

You can issue the EXEC CICS SPI commands in a CICS application program. You can issue CEMT commands directly through the CICS CEMT transaction, without using an application program.

The following table shows the EXEC CICS SPI and CEMT commands and their functions.
Table 1. SPI and CEMT commands for the CICS-MQ connection and monitors
EXEC CICS command CEMT command Function
CREATE MQCONN Not available Set up an MQCONN resource definition
DISCARD MQCONN CEMT DISCARD MQCONN Discard an MQCONN resource definition
Note: When you discard an MQCONN resource that includes a setting for the INITQNAME attribute, the dynamically created MQMONITOR resource and any user-defined MQMONITOR resources are also discarded.
INQUIRE MQCONN CEMT INQUIRE MQCONN Inquire on MQCONN resource definition attributes, status of connection, and number of tasks using connection
SET MQCONN CEMT SET MQCONN Start and stop connection, and change default queue manager or queue-sharing group name and resynchronization strategy
CREATE MQMONITOR Not available Set up an MQMONITOR resource definition
DISCARD MQMONITOR CEMT DISCARD MQMONITOR Discard an MQMONITOR resource definition
INQUIRE MQMONITOR CEMT INQUIRE MQMONITOR Inquire on MQMONITOR resource definition attributes and the current status of the monitor (for example, MONSTATUS(STARTED) with a task ID that is not zero)
SET MQMONITOR CEMT SET MQMONITOR Start and stop MQMONITOR
INQUIRE SYSTEM CEMT INQUIRE SYSTEM Find name of installed MQCONN resource definition
SET TASK FORCEPURGE CEMT SET TASK FORCEPURGE Purge tasks that are using the CICS-MQ connection
EXTRACT STATISTICS MQCONN not available View statistics online for the CICS-MQ connection
SET STATISTICS CEMT SET STATISTICS Reset all statistics including those for the CICS-MQ connection