The examples in this chapter are based on the following assumptions:
--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
Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
--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
B C A A B B C A A B B C A A B B C A A B B
At the end of each example, asterisks in a December 2001 calendar indicate the days on which the job is scheduled.
WDAYS Example 1
Schedule the job on every Sunday and Monday.
WDAYS 0,1
The job is scheduled on the days of the month indicated by an asterisk:
Figure 329 WDAYS Parameter Example 1
WDAYS Example 2
Schedule the job on all working days and on all Saturdays.
WDAYS +6
WCAL WORKDAYS
The job is scheduled on the days of the month indicated by an asterisk:
Figure 330 WDAYS Parameter Example 2
WDAYS Example 3
Schedule the job on Sunday, if it is a working day. If Sunday is not a working day, schedule the job on the first preceding working day that is not a Friday.
WDAYS -5,<0
WCAL WORKDAYS
The job is scheduled on the days of the month indicated by an asterisk:
Figure 331 WDAYS Parameter Example 3
WDAYS Example 4
Schedule the job on Monday of the 1st week.
WDAYS D1W1
The job is scheduled on the days of the month indicated by an asterisk:
Figure 332 WDAYS Parameter Example 4
WDAYS Example 5
Schedule the job on all working days except Mondays and Fridays.
WDAYS -D1,-L1
WCAL WORKDAYS
The job is scheduled on the days of the month indicated by an asterisk:
Figure 333 WDAYS Parameter Example 5
WDAYS Example 6
Each week, schedule the job on the 1st day of period A in that week, and on all days of period B except the second day of period B in any week.
WDAYS D1PA,-D2PB
WCAL PERIDAYS
The job is scheduled on the days of the month indicated by an asterisk:
Figure 334 WDAYS Parameter Example 6
WDAYS Example 7
Schedule the job on each Monday and on the 1st day of the month.
DAYS 1
AND/OR OR
WDAYS 1
The job is scheduled on the days of the month indicated by an asterisk:
Figure 335 WDAYS Parameter Example 7
WDAYS Example 8
Schedule the job on the 3rd day of the month provided it is a Monday.
DAYS 3
AND/OR AND
WDAYS 1
The job is scheduled on the days of the month indicated by an asterisk:
Figure 336 WDAYS Parameter Example 8
WDAYS Example 9
Schedule the job on the last Monday of the month.
DAYS L1,L2,L3,L4,L5,L6,L7
AND/OR AND
WDAYS 1
The job is scheduled on the days of the month indicated by an asterisk:
Figure 337 WDAYS Parameter Example 9
WDAYS Example 10
Schedule the job on the 1st, 7th and 15th day of the month if they are both Saturdays and working days. If the day of the month (1st, 7th, 15th) is not a Saturday, do not schedule the job. If the day of the month is a Saturday, but it is not a working day, schedule the job on the next working day.
DAYS 1,7,15
AND/OR AND
WDAYS 6
CONFCAL WORKDAYS
SHIFT >
The job is scheduled on the days of the month indicated by an asterisk:
Figure 338 WDAYS Parameter Example 10
WDAYS Example 11
The months of July and August are defined in the periodic calendar PER as follows:
J S M
U 30 31
L C C
A T W T F S S M T W T F S S M T W T F S S M T W T F S S M T W T
U 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
G C C C C C D D D D D D D A A A A A A A B B B B B B B C C C C C
WDAYS D1PC WCAL PER
The job will be scheduled on the following days in August: Sunday the 27th and Monday the 28th.
The job is not scheduled on August 1st, because August 1st is contained in the week July 31 through August 6, and therefore, the first day of period C in that week is July 31.
The job is scheduled on August 27, because it is the first (and only) day in period C of the week August 21 through August 27. The job is also obviously scheduled on August 28.
WDAYS D1P* WCAL PER
The job will be scheduled on August 7, 14, 21, and 28 only. The job will not be scheduled on August 6, 13, 20, or 27, because even though those dates contain the first day of a period in the respective week, the D1P* criterion has already been satisfied by a previous day (in a different period) in that same week.
WDAYS Example 12
In this example we want to interface scheduling criteria with pre-requisite conditions.
Schedule a job to run depending on which situation occurs first each month:
DAYS 5
AND/OR OR
WDAYS D1W1
IN condition: \FIRST-OCCURANCE STAT
(inverted/negative condition)
OUT condition: FIRST-OCCURANCE STAT
The above condition should be manually deleted from the COND file on the first of each month only.
Parent Topic |