Previous Topic

Next Topic

Book Contents

Book Index

Examples for WDAYS

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 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

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

WDAYS: Basic Scheduling Parameter