NetBatch Manual
Attributes
NetBatch Manual—522460-004
7-28
CATCHUP Scheduler Attribute
CATCHUP Scheduler Attribute
The CATCHUP scheduler attribute determines whether jobs with the EVERY attribute
accumulate run backlogs. Run backlogs can accumulate when the jobs are on hold or
suspended for longer than the EVERY interval or run for longer than the interval.
OFF
prevents job run backlogs from accumulating. When jobs with the EVERY attribute
are taken off hold, are reactivated, or terminate, the scheduler increments their
next run times by the EVERY interval until the times are in the future.
ON
lets job run backlogs accumulate. When jobs with the EVERY attribute are taken
off hold, are reactivated, or terminate, the scheduler runs them continuously until
their next run times are in the future.
Considerations
•
A scheduler adopts the attribute CATCHUP ON by default when cold started.
•
When the CATCHUP attribute is set to OFF and you warm start the
scheduler, all
jobs with the EVERY attribute start at the next future run time. This
applies to jobs that are on hold (state SPECIAL-n) and that are later taken off hold
by the ALTER JOB command. It also applies to jobs that remain suspended and
are later reactivated.
Examples
•
This example shows the cold start of a scheduler with the attribute CATCHUP
OFF:
> NETBATCH /NAME $ZBAT, NOWAIT/ $DATA7.ZBAT !
> BATCHCOM $ZBAT; ADD SCHEDULER, CATCHUP OFF
Scheduler added
> BATCHCOM $ZBAT; START SCHEDULER
Scheduler started
CAT[CHUP] { OF[F] | ON }
Caution. Changing a scheduler’s CATCHUP attribute from ON to OFF does not prevent the
scheduler from running jobs with run backlogs. In these circumstances, the scheduler runs
each job with a backlog once at the next run time shown before recalculating the next run time
to a future time. To prevent backlogs from ever accumulating:
•
Set the CATCHUP attribute to OFF when you initialize the scheduler’s database during a
cold start.
•
Avoid changing the value of the CATCHUP attribute when the scheduler is running.