Cisco Cisco Workload Automation 6.3 Developer's Guide

Page of 64
40
Command Descriptions
jobcancel
SACmd jobadd -i 10000
The following example adds a job group with the job ID 
4192 and specifies values for the variables, QUEAPPL and 
QUESUB. Notice that the value pairs are separated by commas. 
SACmd job add 4192 -p “QUE=Q123, APPL=A09, QUESUB=QS2”
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.
Syntax
SACmd jobcancel ID [YES|NO]
jobcancel -options
Operation
When cancelled, only job occurrences that are 
Waiting on DependenciesWaiting 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
The following example cancels the job with the job ID 
12146 and releases its dependents.
SACmd jobcancel 2146 YES
The following example cancels the job with job ID 
1857 and does not release its dependents.
SACmd jobcancel 1857
The following example cancels the job with job ID 
2489 and does not release its dependents.
SACmd jobcancel 2489 no
jobdep
The 
jobdep command displays all the dependencies of the specified type belonging to a job or job group.
Syntax
SACmd jobdep -i ID|-a alias -t FILE|JOB [-b]
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.