NetBatch Manual

Attributes
NetBatch Manual522460-004
7-120
WAITON Job Attribute
WAITON without job-name in a SET JOB command makes BATCHCOM remove
the WAITON attribute from the working-attributes set.
case
is one of:
REL[EASE]
makes the dependent job wait for its master to release it with the
ZBAT:RELEASE macro, the NBEXEC command $RELEASE, or the NetBatch
programmatic command RELEASE JOB. (For information about the RELEASE
JOB command, see the NetBatch Management Programming Manual.)
STO[P]
makes the dependent job wait for its master to release it on normal termination
of the master. The release occurs automatically and does not require use of
the ZBAT:RELEASE macro, the NBEXEC command $RELEASE, or the
NetBatch programmatic command RELEASE JOB.
STO[P]-[ABEND]
makes the dependent job wait for its master to release it on normal or
abnormal termination of the master. The release occurs automatically and does
not require use of the ZBAT:RELEASE macro, the NBEXEC command
$RELEASE, or the NetBatch programmatic command RELEASE JOB.
A STOP-ABEND release takes place only if the master job starts successfully.
Job job-name must be in the same scheduler as the dependent job when case
specifies STOP or STOP-ABEND.
Omitting case makes the job wait for its master to release it with the
ZBAT:RELEASE macro, the NBEXEC command $RELEASE, or the NetBatch
programmatic command RELEASE JOB.
Considerations
A dependent job cannot depend on itself (that is, you cannot specify a dependent
job as one of its own masters). A dependent job can be a master of another
dependent job.
To prevent the scheduler from checking that dependent jobs do not wait on
themselves, configure the NBFLAGS procedure to disable WAITON validation. For
details, see on page 2-3.
A dependent job does not run until released by all its masters. For the master jobs
to release their dependents, each master must do one of:
°
Invoke the TACL macro ZBAT:RELEASEif the master job’s executor program
is a TACL process.