NetBatch Manual

Attributes
NetBatch Manual522460-004
7-119
WAITON Job Attribute
Examples
This example shows the WAIT attribute delaying execution of a job by 10 minutes:
> TIME
September 10, 1993 10:30:40
> BATCHCOM $ZBAT; SUBMIT JOB A, WAIT 0:10
Job A job number 226 submitted
> BATCHCOM $ZBAT; INFO JOB A, AFTER
JOB ATTRIBUTES for A
jobnumber: 226
after: 10SEP93 10:40:48
next-runtime: 10SEP93 10:40:48
This example shows the WAIT attribute overriding a job’s AFTER attribute:
> TIME
September 10, 1993 10:35:10
> BATCHCOM $ZBAT; SUBMIT JOB B, AFTER 01JAN94
Job B job number 227 submitted
> BATCHCOM $ZBAT; INFO JOB B, AFTER
JOB ATTRIBUTES for B
jobnumber: 227
after: 01JAN94
next-runtime: 01JAN94 00:00:00
> TIME
September 10, 1993 10:35:53
> BATCHCOM $ZBAT; ALTER JOB B, WAIT 1
Job B job number 227 altered
> BATCHCOM $ZBAT; INFO JOB B, AFTER
JOB ATTRIBUTES for B
jobnumber: 227
after: 10SEP93 11:36:20
next-runtime: 10SEP93 11:36:20
WAITON Job Attribute
The WAITON job attribute specifies the names of up to 50 jobs on which execution of
another job depends. A job with the WAITON attribute is a dependent job. The jobs on
which it depends are master jobs. For more information on job dependencies, see
Section 4, Job Planning, Submission, and Management.
job-name
is the name of a master job. Job job-name must be in the same scheduler as the
dependent job when case specifies STOP or STOP-ABEND.
If you specify WAITON without job-name in an ALTER JOB command, the
scheduler removes the WAITON attribute from the dependent job. Specifying
WAITO[N] [ job-name [ case ]
( job-name [ case ] [ , job-name [ case ] ]… ) ]