NetBatch Manual

Attributes
NetBatch Manual522460-004
7-63
HOLDAFTER Job Attribute
°
A job on hold whose attributes include CALENDAR does not accumulate
a run
backlog while held. When you change the job’s HOLD attribute to OFF,
the job runs again at the next future CALENDAR time.
For more information about run backlogs, see ACTIVATE JOB Command on
page 6-32.
To make a job in the SPECIAL-1 state eligible for execution, alter its HOLD
attribute from ON to OFF.
Example
This example shows the effect of the HOLD attribute:
12} SUBMIT JOB X, HOLD ON
Job X job number 406 submitted
13} STATUS JOB X
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
406 X 205,70 1:Hold DEFAULT
14} INFO JOB X, HOLD
JOB ATTRIBUTES for X
jobnumber: 406
hold: On
15} ALTER JOB X, HOLD OFF
Job X job number 406 altered
16} STATUS JOB X
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
406 X 205,70 269 EXECUTING DEFAULT
HOLDAFTER Job Attribute
The HOLDAFTER job attribute determines whether the scheduler puts a job on hold
when it finishes executing.
OFF
prevents the scheduler from putting the job on hold when it finishes executing.
ON
causes the scheduler to put the job on hold when it finishes executing. A job on
hold has a state of SPECIAL-1 and the attribute HOLD ON.
Considerations
The HOLDAFTER attribute allows a job to run but puts it on hold after it has
run. T
he HOLD attribute prevents the job from running.
HOLDA[FTER] { OF[F] | ON }