NetBatch Manual

Job Planning, Submission, and Management
NetBatch Manual522460-004
4-26
Specifying a Job’s Hold Characteristics
> BATCHCOM $ZBAT; SUBMIT JOB I, WAIT 0:30
Job I job number 715 submitted
> BATCHCOM $ZBAT; INFO JOB I, WAIT; STATUS JOB I
JOB ATTRIBUTES for I
jobnumber: 715
after: 02APR93 16:37:20
next-runtime: 02APR93 16:37:20
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
715 I 255,205 16:37:20 DEFAULT
LIMIT Attribute
The LIMIT attribute specifies an execution time limit for a job. When the limit is
reached, the job continues to execute, but its state changes from EXECUTING to
OVER LIMIT.
Example
This example shows a job with the LIMIT attribute exceeding the specified execution
time:
9} SUBMIT JOB, EXECUTOR-PROGRAM DELAY, STARTUP "3 MINS",
LIMIT
0:01
Job ZBAT-0016 Jobnumber 16 submitted
10} STATUS JOB 16
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
16 ZBAT-0016 205,70 149 EXECUTING DEFAULT
11} STATUS JOB 16
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
16 ZBAT-0016 205,70 149 OVER LIMIT DEFAULT
Specifying a Job’s Hold Characteristics
The HOLD and HOLDAFTER attributes determine whether the scheduler puts a job on
hold before or after the job runs. A job on hold has a state of SPECIAL-1. You can take
it off hold by using the ALTER JOB command.
Example
This example shows the effect of the HOLD and HOLDAFTER attributes. The HOLD
ON attribute prevents job C from executing when submitted. The ALTER JOB
command sets the HOLD attribute to OFF, thus enabling the job to run. The
HOLDAFTER ON attribute makes the scheduler put the job back on hold after job
execution (that is, the HOLD attribute is reset to ON).
10} SUBMIT JOB C, HOLD ON, HOLDAFTER ON
Job C job number 469 submitted
11} STATUS JOB C