A calendar definition is a collection of parameters, in calendar form, that is used to indicate on what dates of the year scheduling should occur.
Calendars can be very useful for providing basic scheduling criteria, especially when
An example might be a WORKDAYS calendar that schedules jobs on all weekdays, Monday through Friday, that are not holidays. Creating this schedule using basic scheduling parameters would be problematic. Defining the weekdays is simple enough, but excluding the holidays will be a problem.
Instead of detailing the scheduling criteria in the job scheduling definition of each job, the scheduling criteria can be specified once in a calendar, and then only the calendar name need be specified in each the job scheduling definition. An example might be a HOLIDAYS calendar that consists of a number of disparate dates. Specifying this once in a calendar is easier and less error-prone than specifying the same set of dates in many job scheduling definitions.
You can now define a calendar for use in your job scheduling definition.
In the LIBRARY field is the name of the default calendar library at your site. For purposes of illustration, you will call this library IOA.TEST.CAL.
Figure 51 IOA Calendar Definition Facility - Entry Panel
--------------------- IOA CALENDAR FACILITY - ENTRY PANEL ------------------(8)
COMMAND ===>
SPECIFY LIBRARY, CALENDAR, YEAR
LIBRARY ===> IOA.TEST.CAL
CALENDAR ===> (Blank for calendar selection list)
YEAR ===> (Blank for year selection list)
USE THE COMMAND "SHPF" TO SEE PFK ASSIGNMENT 11.28.41
SPECIFY LIBRARY, CALENDAR, YEAR
LIBRARY ===> IOA.TEST.CAL
CALENDAR ===> IDCAL1 (Blank for calendar selection list)
YEAR ===> (Blank for year selection list)
The Calendar Definition screen is displayed for the current year, as indicated by the label under the COMMAND field.
Figure 52 IOA Calendar Definition Screen
--------------------------- IOA CALENDAR - IDCAL1 ----------------------(8.Y)
COMMAND ===> SCROLL===> CRSR
YEAR 2001 -
-----S-------------S-------------S-------------S-------------S-------------S---
1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1
01
-----S-------------S-------------S-------------S-------------S-------------S---
1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8
02
-----S-------------S-------------S-------------S-------------S-------------S---
1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1
03
-----S-------------S-------------S-------------S-------------S-------------S---
1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 +
04
-----S-------------S-------------S-------------S-------------S-------------S---
1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1
05
-----S-------------S-------------S-------------S-------------S-------------S---
1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 +
06
-----S-------------S-------------S-------------S-------------S-------------S---
TYPE Y IN ALL THE EXECUTION DAYS 11.35.33
--------------------------- IOA CALENDAR - IDCAL1 ----------------------(8.Y)
COMMAND ===> SCROLL===> CRSR
YEAR 2001 - GETTING STARTED
Notice the layout of the screen:
Normally, you would try to create a logical, useful calendar. However, to keep the definition as simple as possible, you will specify Y only for the date on which you are performing these exercises.
--------------------------- IOA CALENDAR - IDCAL1 ----------------------(8.Y)
COMMAND ===> SCROLL===> CRSR
YEAR 2001 - GETTING STARTED
-----S-------------S-------------S-------------S-------------S-------------S---
1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1
01
-----S-------------S-------------S-------------S-------------S-------------S---
1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8
02
-----S-------------S-------------S-------------S-------------S-------------S---
1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1
03
-----S-------------S-------------S-------------S-------------S-------------S---
1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 +
04
-----S-------------S-------------S-------------S-------------S-------------S---
1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1
05 Y
-----S-------------S-------------S-------------S-------------S-------------S---
1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 +
06
-----S-------------S-------------S-------------S-------------S-------------S---
TYPE Y IN ALL THE EXECUTION DAYS 11.35.33
Figure 53 Year List Screen
LIST OF YEARS IN IOA.TEST.CAL CALENDAR IDCAL1
COMMAND ===> SCROLL===> CRSR
OPT YEAR ----------------- DESCRIPTION ---------------------------------------
2001 GETTING STARTED
======= >>>>>>>>>>>>>>>> NO MORE YEARS IN CALENDAR <<<<<<<<<<<<<<<< ======
OPTIONS: S SELECT D DELETE I INSERT W INSERT BY WEEK DAYS C COPY12.02.36
Exit the Year List screen. The Exit Option window is displayed. Type Y in the CREATE field and press Enter to save this newly created calendar. You can now use this calendar in your job scheduling definition.
Although you specified only a calendar name in this exercise, calendars can be used in conjunction with other basic scheduling parameters.
The relationship between DAYS values and the DCAL calendar depends on the format of values specified for DAYS parameter. The same holds true of the relationship between WDAYS values and the WCAL calendar. For details, refer to the description of parameters DAYS and WDAYS in the parameters chapter of the Control-M for z/OS User Guide.
Parent Topic |