NetBatch Manual

Job Planning, Submission, and Management
NetBatch Manual522460-004
4-25
Scheduling a Job
Job ZBAT-0013 Jobnumber 13 submitted
19> BATCHCOM $ZBAT; INFO JOB 13, CALENDAR
JOB ATTRIBUTES for ZBAT-0013
jobnumber: 13
calendar: \MELBDEV.$NB.MAN14.NOVDATES
next-runtime: 01NOV2001 09:00:00
EVERY Attribute
The EVERY attribute specifies a regular interval at which the scheduler automatically
runs a job.
Example
This example shows the EVERY attribute specifying an eight-hour execution frequency
for a job. After running the job once when it is submitted, the scheduler automatically
reschedules it to run again eight hours later.
> TIME
April 2, 1993 15:56:38
> BATCHCOM $ZBAT; SUBMIT JOB H, EVERY 8:00 HOURS
Job H job number 714 submitted
> BATCHCOM $ZBAT; INFO JOB H, EVERY
JOB ATTRIBUTES for H
jobnumber: 714
every: 8:00 HOURS
next-runtime: 02APR93 15:57:02
> BATCHCOM $ZBAT; STATUS JOB H
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
714 H 255,205 EXECUTING DEFAULT
> BATCHCOM $ZBAT; STATUS JOB H
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
714 H 255,205 23:57:02 DEFAULT
> BATCHCOM $ZBAT; INFO JOB H, EVERY
JOB ATTRIBUTES for H
jobnumber: 714
every: 8:00 HOURS
next-runtime: 02APR93 23:57:02
WAIT Attribute
The WAIT attribute prevents the scheduler from executing a job for a specified period
after submission.
Example
This example shows the WAIT attribute delaying job execution for 30 minutes from the
time of submission:
> TIME
April 2, 1993 16:06:50