kill

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

Overview

When you stop jobs by using the kill command, the stopped jobs are finished in the ABEND state. Jobs or job streams that are dependent on these jobs, are not released. You can later run the jobs 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 job stream 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 job to update, by using attributes and qualifiers.

For example, enter the following command WA_AGT_0#JOB_STREAM.JOB.

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 job in the apwkly(0600 03/05/06) job stream on the site3 workstation, run the following command:
    ocli plan kill site3#apwkly(0600 03/05/06).report
  2. To stop the 124 job that is running on the geneva workstation, run the following command:
    ocli plan kill geneva#124