Skip to Content

Wipro Mainframe: How to Kill Long Running Transaction in CICS?

Learn how to effectively kill a long running transaction in CICS using the CEMT SET TASK(TASK NUMBER) FORCEPURGE command. Get a detailed explanation of this powerful command.

Table of Contents

Question

A long running transaction in CICS can be killed by which command

A. CEMT SET TASK(TASK NUMBER) PURGE
B. CEMT SET TASK(TASK NUMBER) FORCE
C. CEMT SET TASK(TASK NUMBER) CANCEL
D. CEMT SET TASK(TASK NUMBER) FORCEPURGE

Answer

D. CEMT SET TASK(TASK NUMBER) FORCEPURGE

Explanation

In CICS, a long running transaction that needs to be killed can be terminated using the CEMT SET TASK(TASK NUMBER) FORCEPURGE command. This command forcibly terminates the specified task and backs out any changes made by the task, releasing all resources held by the task.

The FORCEPURGE option is the most powerful way to kill a task in CICS. It guarantees that the task will be terminated, even if the task is currently suspended or is unresponsive to other termination commands like PURGE, FORCE, or CANCEL.

When FORCEPURGE is issued, CICS immediately terminates the task, backs out any uncommitted changes to recoverable resources, and returns control to the system. This ensures the task is killed and system integrity is maintained.

In contrast, the PURGE, FORCE, and CANCEL options are less forceful and may not successfully kill the task in some scenarios, such as when the task is suspended or unresponsive. FORCEPURGE should be used as a last resort when the other commands are ineffective.

Therefore, the CEMT SET TASK(TASK NUMBER) FORCEPURGE command is the most reliable way to kill a long running transaction in CICS.

Wipro Mainframe MySkillz Trendnxt certification exam assessment practice question and answer (Q&A) dump including multiple choice questions (MCQ) and objective type questions, with detail explanation and reference available free, helpful to pass the Wipro Mainframe MySkillz Trendnxt exam and earn Wipro Mainframe MySkillz Trendnxt certification.