CICS KILL TERM
The following table describes the parameters for the IMFEXEC CICS KILL TERM command statement.
Parameter | Function | Notes |
---|---|---|
Terminal ID | terminal to which the task is attached | not applicable |
Type | type of abnormal termination desired | one of the following values: PURGE: Purges a task by using the services of the transaction CEMT that is supplied by CICS. FORCEPURGE: PURGE a task by using the services of the transaction CEMT and the FORCE parameter. |
Examples
This section contains an example of using the IMFEXEC CICS KILL TASK and IMFEXEC CICS KILL TERM command statements. A brief discussion follows the example.
Example 1: IMFEXEC CICS KILL TASK
When coded within an EXEC driven off the message FT041S, this command kills a task when the message:
is logged to the online Journal. The task ID is contained in the P004 variable.
'IMFEXEC CICS KILL TASK 0004'
CLIST example:
Example 2: IMFEXEC CICS KILL TERM
This example terminates the CICS task that is attached to terminal BSA4.
REXX EXEC example:
'IMFEXEC CICS KILL TERM BSA4'
CLIST example: