NetBatch Manual

Job Planning, Submission, and Management
NetBatch Manual522460-004
4-23
Scheduling a Job
Scheduling a Job
The attributes AFTER, AT, CALENDAR, EVERY, and WAIT are timing attributes that
specify when a job runs and its run frequency. (AFTER, AT, and WAIT are mutually
exclusive, as are CALENDAR and EVERY.) The LIMIT attribute specifies an execution
time limit for the job.
A job with the CALENDAR or EVERY attribute is a recurrent job because the scheduler
automatically reschedules the job after it runs. A job whose attributes do not include
CALENDAR or EVERY is a nonrecurrent job.
AFTER Attribute
The AFTER attribute specifies a time after which a job becomes eligible for execution.
Example
The AFTER attribute in this example schedules a job to run after 11:45 a.m. on May
01, 2002. The scheduler puts the job in the TIME state pending execution.
57> TIME
April 2, 2002 14:18:35
58> BATCHCOM $ZBAT; SUBMIT JOB F, AFTER MAY 01 2002 11:45
Job F job number 702 submitted
59> BATCHCOM $ZBAT; INFO JOB F, AFTER
JOB ATTRIBUTES for F
jobnumber: 702
after: 01MAY2002 11:45:00
next-runtime: 01MAY2002 11:45:00
60> BATCHCOM $ZBAT; STATUS JOB F
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
702 F 205,70 01MAY2002 DEFAULT
AT Attribute
The AT attribute specifies a time at which the scheduler runs a job. The attribute
makes the scheduler create a temporary executor for the job. The scheduler deletes
the temporary executor when the job finishes.
The scheduler’s AT-ALLOWED attribute determines whether users who are not
NetBatch supervisors (that is, users without execute access to the NETBATCH
program file) can submit jobs with the AT attribute. To check the value of AT-
ALLOWED, use the INFO SCHEDULER command.
Examples
This example shows a scheduler with the AT-ALLOWED OFF attribute rejecting a
job submitted with the AT attribute:
3} INFO SCHEDULER, AT-ALLOWED
SCHEDULER ATTRIBUTES