NetBatch Manual

Job Planning, Submission, and Management
NetBatch Manual522460-004
4-32
Specifying a Job’s Dependencies
jobnumber: 20
waiton: MASTER-JOB-1, Not Released
MASTER-JOB-2, Not Released
14} STATUS JOB 20
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
20 DEPENDENT-JOB 255,205 EVENT DEFAULT
Releasing a Dependent Job
A dependent job does not run until released by all its masters. For the master jobs to
release the dependent job, each must do one of:
Invoke the TACL macro ZBAT:RELEASE––if the master job’s executor program is
a TACL process.
Execute an explicit or implicit $RELEASE command––if the master job’s executor
program is an NBEXEC process. NBEXEC automatically executes an implicit
$RELEASE * command if the job runs without errors.
Execute the NetBatch programmatic command RELEASE JOB.
Terminate normally (if the dependent job has the attribute WAITON master-job
STOP or WAITON master-job STOP-ABEND) or abnormally (WAITON master-job
STOP-ABEND).
To release dependent jobs from their masters without running the masters, use the
RELEASE-WAITON Command on page 6-115.
ZBAT:RELEASE
The ZBAT:RELEASE macro comes with NetBatch software (in product file
ZBATSEGF). When invoked from a master job’s input file, the macro makes the master
job’s scheduler release the nominated dependent jobs. The syntax of the statement
that invokes the macro is:
node
is a node name. The default is the node where the master job’s scheduler is
running.
schd
is the process name of the scheduler of the dependent jobs specified by job-
name-range. The default is the name of the master job’s scheduler process.
job-name-range
is a dependent job name or a range of dependent job names specified with the
asterisk (*) and question mark (?) wild-card characters.
ZBAT:RELEASE [ [ \node. ] $schd ] job-name-range [ error ]