Previous Topic

Next Topic

Book Contents

Book Index

Examples

The examples in this chapter are based on the following assumptions:

At the end of each example, asterisks in a December 2001 calendar indicate the days when the rule is scheduled.

Example 1

Schedule the rule on every Sunday and Monday.

WDAYS   - 0,1

The rule is scheduled on the days of the month indicated by an asterisk in Figure 234.

Figure 234 WDAYS Parameter – Example 1

Example 2

Schedule the rule on all working days and on all Saturdays.

WDAYS   - +6

WCAL    - WORKDAYS

The rule is scheduled on the days of the month indicated by an asterisk in Figure 235

Figure 235 WDAYS Parameter – Example 2

Example 3

Schedule the rule on Sunday, if it is a working day. If Sunday is not a working day, schedule the rule on the first preceding working day that is not a Friday.

WDAYS   - -5,<0

WCAL    - WORKDAYS

The rule is scheduled on the days of the month indicated by an asterisk in Figure 236.

Figure 236 WDAYS Parameter – Example 3

Example 4

Schedule the rule on the 1st Monday of the 1st week.

WDAYS   - D1W1

The rule is scheduled on the day of the month indicated by an asterisk in Figure 237.

Figure 237 WDAYS Parameter – Example 4

Example 5

Schedule the rule on all working days except Mondays and Fridays.

WDAYS   - -D1,-L1

WCAL    - WORKDAYS

The rule is scheduled on the days of the month indicated by an asterisk in Figure 238.

Figure 238 WDAYS Parameter – Example 5

Example 6

Each week, schedule the rule on the 1st day of period A in that week, and on all days except the second day of period B in that week.

WDAYS   - D1PA,-D2PB

WCAL    - PERIDAYS

The rule is scheduled on the days of the month indicated by an asterisk in Figure 239.

Figure 239 WDAYS Parameter – Example 6

Example 7

Schedule the rule on each Monday, and on the 1st day of the month.

DAYS    - 1

AND/OR  - OR

WDAYS   - 1

The rule is scheduled on the days of the month indicated by an asterisk in Figure 240.

Figure 240 WDAYS Parameter – Example 7

Example 8

Schedule the rule on the 3rd day of the month provided it is a Monday.

DAYS    - 3

AND/OR  - AND

WDAYS   - 1

The rule is scheduled on the day of the month indicated by an asterisk in Figure 241.

Figure 241 WDAYS Parameter – Example 8

Example 9

Schedule the rule on the last Monday of the month.

DAYS    - L1,L2,L3,L4,L5,L6,L7

AND/OR  - AND

WDAYS   - 1

The rule is scheduled on the day of the month indicated by an asterisk in Figure 242.

Figure 242 WDAYS Parameter – Example 9

Example 10

Schedule the rule 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 rule. If the day of the month is a Saturday, but it is not a working day, schedule the rule on the next working day.

DAYS    - 1,7,15

AND/OR  - AND

WDAYS   - 6

CONFCAL - WORKDAYS

SHIFT   - >

The rule is scheduled on the days of the month indicated by an asterisk in Figure 243.

Figure 243 WDAYS Parameter – Example 10

Parent Topic

WDAYS: Basic Scheduling Parameter