Valid formats for the WDAYS parameter, and how they relate to WCAL, are described in this section.
Non-periodic scheduling
The following rules govern the use of non-periodic scheduling formats:
Table 171 Non-Periodic Scheduling Formats
Format |
Description |
---|---|
ALL |
All days in the week. If ALL is specified, other WDAYS values cannot be specified with it.
|
n,... |
Specific days of the week.
|
+n,... |
Days of the week in addition to the working days specified in the WCAL calendar. WCAL is mandatory. |
–n,... |
Order the rule on all days except the nth day from the beginning of the week. WCAL is mandatory. |
>n,... |
Order the rule on the indicated day if it is a working day in the WCAL calendar; otherwise, order the rule on the next working day (within the next seven days) that is not negated by a –n value in the parameter. If none of the next seven days is a working day, the rule is not ordered. This format is frequently used for holiday handling. WCAL is mandatory. |
<n,... |
Order the rule on the indicated day if it is a working day in the WCAL calendar; otherwise, order the rule on the last previous working day (within the preceding seven days) that is not negated by a –n value in the parameter. If none of the preceding seven days was a working day, the rule is not ordered. This format is frequently used for holiday handling. WCAL is mandatory. |
Dn,... |
Order the rule on the nth working day from the beginning of the week. WCAL is mandatory. |
–Dn,... |
Order the rule on all working days except the nth working day from the beginning of the week. WCAL is mandatory. |
Ln,... |
Order the rule on the nth working day from the end of the week. WCAL is mandatory. |
–Ln,... |
Order the rule on all working days except the nth working day from the end of the week. WCAL is mandatory. |
DnWm,... |
(Where m is a number from 1 through 6). If WCAL is defined, order the rule on the nth day of the mth week of the month. If WCAL is not defined, order the rule on the mth appearance of the nth day of the week during the month. WCAL is optional. |
Note: When specifying DnWm with a calendar in the WCAL field, do not code n as 0. This may produce unpredictable results. |
Periodic scheduling
Table 172 shows the periodic scheduling formats that can be used with the WDAYS parameter.
The following rules govern the use of periodic scheduling formats:
Table 172 Periodic Scheduling Formats
Format |
Description |
DnPi,... |
Order the rule on the nth day of period i in each week, from the beginning of the week. |
–DnPi,... |
Order the rule on all days except the nth day of period i in each week, from the beginning of the week. |
LnPi,... |
Order the rule on the nth day of period i in each week, from the last day of the week. |
–LnPi,... |
Order the job on all days in period i except the nth day of period i in each week, from the last day of the week. |
Parent Topic |