NetBatch Manual
Attributes
NetBatch Manual—522460-004
7-27
CALENDAR Job Attribute
°
A job can have one of the attributes, but not both.
°
CALENDAR overrides EVERY when assigned to a job whose attributes include
EVERY, and EVERY overrides CALENDAR when assigned to a job whose
attributes include CALENDAR.
•
For information about how the scheduler treats a recurrent job that fails, see the
descriptions of the IFFAILS Job Attribute on page 7-64, RESTART Job Attribute on
page 7-95, STALL Job Attribute on page 7-102, and STOP-ON-ABEND Job
Attribute on page 7-105.
•
For information about recurrent jobs that are also dependent jobs, see WAITON
Job Attribute on page 7-119.
Example
This example first shows the generation of a BATCHCAL calendar file from an EDIT
source file. It then shows BATCHCAL displaying the next run time from the generated
file. Finally, the example shows the submission and next run time of a job whose
CALENDAR attribute specifies the BATCHCAL file.
> FILEINFO CALIN
$DATA7.NB
Code …
CALIN 101 …
> BATCHCAL /IN CALIN/
$DATA7.NB.CALOUT == Name of the generated calendar file
06:00 == Default start time
1993 * LAST == Run on last day of every month
- 1993 06 LAST == Not run on last day of June
1993 06 15 23:59 == Run on June 15 at 23:59
> FILEINFO CALOUT
$DATA7.NB
Code …
CALOUT 848 …
> BATCHCAL /IN CALOUT/ NEXT-DATE
1993-01-31 06:00:00
> BATCHCOM $ZBAT; SUBMIT JOB MONTH-END, CALENDAR CALOUT,
IFFAILS ON
Job MONTH-END job number 326 submitted
> BATCHCOM $ZBAT; INFO JOB MONTH-END, AFTER, CALENDAR,
IFFAILS
JOB ATTRIBUTES for MONTH-END
jobnumber: 326
calendar: \MELBDEV.$DATA7.NB.CALOUT
iffails: On
next-runtime: 31JAN93 06:00:00