NetBatch Manual
Job Planning, Submission, and Management
NetBatch Manual—522460-004
4-33
Specifying a Job’s Dependencies
error
causes the scheduler to log an error or warning number in the master job’s
executor-program output file when a release of a dependent job is unsuccessful.
The NetBatch message corresponding to the number indicates the reason the
release was unsuccessful. (For example, error 2099––“job does not exist”––would
appear in the output file if job-name-range specified a nonexistent job.) The
scheduler does not set error if the release succeeds.
To test error and retry an unsuccessful release or quit, use the TACL #IF built-in
function; Figure 4-10 shows sample input-file statements that do this. For more
information on the function, see the TACL Reference Manual.
$RELEASE
The $RELEASE command is an NBEXEC command that performs a similar function to
ZBAT:RELEASE. The syntax of the command 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.
Figure 4-10. Sample #IF Statements for ZBAT:RELEASE Error
$RELEASE [ [ \ node. ] $ schd , ] job-name-range
#PUSH ERROR
ZBAT:RELEASE \MELBDEV.$ZBAT DEPENDENT-JOB ERROR
[ #IF [ ERROR ]
|THEN|
[ ZBAT:RELEASE \MELBDEV.$ZBAT DEPENDENT-JOB ERROR ]
[ #IF [ ERROR ]
|THEN|
[ #OUTPUT ERROR RELEASING DEPENDENT-JOB ]
]
]
VST112.vsd