Previous Topic: Stopping a CAISDI/med TaskNext Topic: CAISDI/med Messages


Forcing Termination of a CAISDI/med Task

Normally, a CAISDI/med task is stopped using a STOP command. However, when a given target task is not responding to a STOP command, it is possible to force the termination of a task by issuing the KILL command.

The KILL command lets you force the termination of a CAISDI/med task that is non-responsive. The target CAISDI/med task is terminated with a User 222 abend.

Important! Use this command as a last resort. Termination of a CAISDI/med task can result in the failure of the CAISDI/med address space. Use this command only if you are prepared to stop and start the CAISDI/med address space.

Use this syntax for the KILL command:

KILL task_name
task_name

This positional parameter is the name of the target task that is terminated. You can use the DISPLAY TASKS command to obtain a list of the CAISDI/med task names.

Important! Terminating the CAISDI/med task named CONTROL causes the entire CAISDI/med address space to terminate.

The following is an example of the KILL command:

KILL USDSRV01

As another example, to terminate, with a U0222 abend, the CAISDI/med task that has not responded to a STOP command in the preceding example, enter the following command:

MODIFY CASDIMED,KILL USDSRV01

Alternatively, the KILL command can be shortened to the following:

MODIFY CASDIMED,K name

The name operand is the name of the CAISDI/med task that is scheduled to stop. The DISPLAY TASKS command can be used to identify all valid task names and their current status.