NetBatch Manual

NetBatch Manual522460-004
5-1
5
Run Calendar Generation and
Display
A run calendar is a disk file generated from user-supplied source data by the
BATCHCAL program. It contains a series of dates and times called run times. You can
schedule a job to run automatically at those times by using the CALENDAR attribute to
assign the file to the job. For more information, see CALENDAR Job Attribute on
page 7-25.
Example
This example illustrates the use of a run calendar in scheduling a job:
1. BATCHCAL generates a calendar file (file code 848) based on source data in an
EDIT file.
2. BATCHCAL displays the next run time from the generated file.
3. BACTCHAL displays the submission and next run time of a job whose CALENDAR
attribute specifies the BATCHCAL file:
13> FILEINFO
$DATA7.CALFILES
Code EOF Last Modification …
SRCFRI95 101 2200 26-Oct-94 9:49:37 …
14> FUP COPY SRCFRI95
$DATA7.CALFILES.CALFRI95 == Name of calendar file
14:30 == Default job start time
1995 * FRIDAY == All Fridays during 1995
15> BATCHCAL /IN SRCFRI95/
$DATA7.CALFILES.CALFRI95 == Name of calendar file
14:30 == Default job start time
1995 * FRIDAY == All Fridays during 1995
16> FILEINFO
$DATA7.CALFILES
Code EOF Last Modification …
CALFRI95 848 210 26-Oct-94 9:52:12 …
SRCFRI95 101 2200 26-Oct-94 9:49:37 …
Topic Page
Running BATCHCAL
5-2
Entering Source Data 5-5
Using BATCHCAL Commands 5-13
Generating a Run Calendar 5-14
Displaying Run Times 5-16
Reformatting an Old Calendar File 5-22