Previous Topic: CICSCMD SET IRC—Set IRC Status

Next Topic: CICSCMD SET TERMINAL—Set Terminal Status

CICSCMD SET TASK—Terminate Task

The CICSCMD SET TASK command terminates a CICS task. The RCIW15 or RCIW14 message indicates the success or failure of the operation. The function is similar to that provided by the CICS CEMT SET TASK transaction.

This command has the following format:

CICSCMD cics_region_name SET TASK(task_number) {PUR | FORCE}
cics_region_name

Defines the CICS region that owns the task to be terminated.

task_number

Defines the task to be terminated.

PUR | FORCE

Terminates the task.

PUR

Terminates the task only if region and data integrity can be maintained.

FORCE

Terminates the task irrespective of whether region and data integrity can be maintained.

Example:

CICSCMD CICSA SET TASK(28) PUR
CICSCMD CICSA SET TASK(128) FORCE