jobset

Note: Always enclose arguments containing spaces in quotes, or the command will not execute successfully.

Example: If the Program Files folder is included in a path statement as an argument, the entire path must be enclosed by quotes.

The jobset command lets you manually set the completion status of a job. You can obtain the job run ID by using the jobmon command.

SACmd jobset -i ID -s status

jobset -options

Option

Description

-i ID

The run ID of the job to rerun. This option is required.

-s status

The new completion status for the job. You have these options:

  • "Completed Normally", or 101

  • "Error Occurred", or 66

  • "Completed Abnormally", or 103

  • "Skipped", or 104

  • "Externally Defined", or 107

  • "Orphaned", or 105

This option is required. Note that statuses containing spaces must be in quotes.

Operation

You can set a job’s completion status to these statuses (which constitute all available completion statuses): Completed Normally, Completed Abnormally, Error Occurred, Externally Defined, Orphaned and Skipped.

Examples

  • The example sets the job with run ID 2476 to Completed Normally.

    SACmd jobset -s 101 -i 2476
  • Either of these examples sets the job with run ID 3245 to Completed Abnormally.

    SACmd jobset -i 3245 -s 103
    SACmd jobset -i 3245 -s “Completed Abnormally”