Purging tasks that are using the CICS-WebSphere MQ connection
You can use the CICS® CEMT transaction to purge user tasks that are using the CICS-WebSphere® MQ adapter.
About this task
Procedure
- Use the CICS-WebSphere MQ adapter control panels to display details of tasks that are using the CICS-WebSphere MQ connection, including their task numbers. Note the numbers of any tasks that you want to purge. Displaying tasks that are using the CICS-WebSphere MQ connection explains how to do this.
- For each task that you want to forcepurge, enter the command CEMT SET TASK(number) FORCEPURGE on the CICS command line, where number is the task number for the task.
Results
- If a task is waiting for a message to arrive, for example, if the application has issued an MQGET WAIT call, the task is stopped with code AEXY immediately.
- Otherwise, the adapter waits for the request to complete, and then checks whether it is
suitable to end the task.
- If the task is in a critical state, the adapter lets the task continue and ignores the attempt to purge it, to preserve data and system integrity. Message DFHMQ0415I is displayed. A task is in a critical state when, for example, it is in the process of completing phase 2 of a 2-phase commit sequence.
- If the task is not in a critical state, the adapter ends it with code AEXY. Message DFHMQ0414I is displayed.