jobcancel

The jobcancel command cancels a job occurrence with the specified job ID from the production schedule. You can also specify whether canceling the job affects other dependent jobs. You can obtain the ID by running the jobmon command.

SACmd jobcancel ID [YES|NO]

jobcancel -options

Option

Description

ID

The jobrun ID of the job to cancel. This option is required.

YES|NO

Specifies whether to also cancel successor jobs.

  • If YES, its dependent jobs are also cancelled.

  • If NO, its dependents are still dependent on this specific job. The dependent jobs will continue to wait until the dependency is met. The default is NO. This value must follow the ID.

Operation

When cancelled, only job occurrences that are Waiting on Dependencies, Waiting on Resources or Waiting on Operator end up with the status Cancelled. When a job occurrence is in the Active state, its resulting status is Aborted. A job’s status can be determined using the jobmon command.

Examples

  • This example cancels the job with the job ID 12146 and releases its dependents:

    Example: SACmd jobcancel 2146 YES.

  • This example cancels the job with job ID 1857 and does not release its dependents:

    Example: SACmd jobcancel 1857.

  • This example cancels the job with job ID 2489 and does not release its dependents:

    Example: SACmd jobcancel 2489 n.