NetBatch Manual

Job Planning, Submission, and Management
NetBatch Manual522460-004
4-24
Scheduling a Job
at-allowed: Off
4} SUBMIT JOB M, AT 19:30
2056-E AT-ALLOWED is currently OFF; submit AFTER time
5} INFO JOB M
2099-E JOB does not exist
This example shows submission of a job with the AT attribute. The scheduler
creates a temporary executor for the job and deletes the executor when the job
finishes:
17} STATUS EXECUTOR *
2117-I No EXECUTOR selected
18} SUBMIT JOB, EXECUTOR-PROGRAM DELAY, STARTUP "1 MINS", AT
Job ZBAT-0009 Jobnumber 9 submitted
19} INFO JOB 9, AT
JOB ATTRIBUTES for ZBAT-0009
jobnumber: 9
at:
next-runtime: 20OCT2002 17:06:27
20} STATUS JOB 9
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
9 ZBAT-0009 205,70 148 EXECUTING DEFAULT
21} STATUS EXECUTOR *
EXECUTOR CPU STATE JOB CLASS
------------------------ --- ------ ---- -------
__TEMP_EXEC_9 0 DELETE 9 DEFAULT
22} STATUS JOB 9; STATUS EXECUTOR *
2099-E JOB does not exist
2117-I No EXECUTOR selected
CALENDAR Attribute
The CALENDAR attribute assigns a BATCHCAL-generated run calendar to a job. The
calendar is a file containing a series of run times at which the scheduler automatically
runs the job. For information about BATCHCAL and run calendars, see Section 5, Run
Calendar Generation and Display.
Example
This example shows generation of a simple run calendar and the submission of a job
using that calendar. The scheduler schedules the job to run at the next time in the
calendar relative to the current time.
15> BATCHCAL
1} NOVDATES == File ID of run calendar
2} 09:00 == Default job-start time
3} 2001 NOV * == Run daily through 11/2001 at 9 a.m.
4} EXIT
16> TIME
October 20, 2001 17:20:13
17> BATCHCAL /IN NOVDATES/ NEXT-DATE
2001-11-01 09:00:00
18> BATCHCOM $ZBAT; SUBMIT JOB, CALENDAR NOVDATES