kill

You can use the kill command to stop a task in progress.

Overview

When you stop tasks by using the kill command, the stopped tasks are finished in the ABEND state. Tasks or workflows that are dependent on these tasks, are not released. You can later run the tasks that are in ABEND state.

Syntax and command line options

Before you run the command, you must specify the details of the command line options such as workflow name, dependencies and required permissions. you can enter the command as follows:
ocli plan kill | k jobselect [;noask]

The details that are required with each parameters are described below.

jobselect

Specify the task to update, by using attributes and qualifiers.

For example, enter the following command WA_AGT_0#WORKFLOW.TASK.

noask

When you add the noask option as an argument, the agent does not ask for confirmation before it acts on each qualifying item.

Examples

  1. To stop the report tasks in the apwkly(0600 03/05/06) workflow on the site3 workstation, run the following command:
    ocli plan kill site3#apwkly(0600 03/05/06).report
  2. To stop the 124 tasks that is running on the geneva workstation, run the following command:
    ocli plan kill geneva#124