Valid formats for the WDAYS parameter, and how they relate to WCAL, are described below.
In the non-periodic scheduling formats described in Table 225, n is an integer from 1 through 6 or 0 (zero), where 1 = the first day of the week (Sunday or Monday, depending on the standard at your site) and 0 = the last day of the week (Saturday or Sunday).
Table 225 Non-Periodic Scheduling Formats
Format |
Description |
---|---|
ALL |
All days of the week. If ALL is specified, other WDAYS values cannot be specified with it. If a WCAL calendar is not defined, schedule the job on all days in the week. If a WCAL calendar is defined, schedule the job only on the working days indicated in the calendar. |
n,... |
Specific days of the week. If a WCAL calendar is not defined, schedule the job on the specified days. If a WCAL calendar is defined, schedule the job only when a day is defined as a working day both in the WDAYS parameter and in the WCAL calendar. |
+n,... |
Days of the week in addition to the working days specified in the WCAL calendar. WCAL is mandatory. If, besides +n, other scheduling criteria are specified, these other criteria limit the scheduled days to the intersection of the other criteria with the WCAL calendar. For example, specifying WDAYS=+1,5 means schedule the job on the first day of the week, whether or not it is a scheduled day on the WCAL calendar, and on the 5th day of the week, but only if it is a scheduled day on the WCAL calendar. No other days are scheduled. |
–n,... |
Order the job on all days except the nth day from the beginning of the week. WCAL is mandatory. |
>n,... |
Order the job on the indicated day if it is a working day in the WCAL calendar; otherwise, order the job on the next working day (within the next seven daysa ) that is not negated by a –n value in the parameter. This format is frequently used for holiday handling. WCAL is mandatory. |
<n,... |
Order the job on the indicated day if it is a working day in the WCAL calendar; otherwise, order the job on the last previous working day (within the preceding seven daysa) that is not negated by a –n value in the parameter. This format is frequently used for holiday handling. WCAL is mandatory. |
Dn,... |
Order the job on the nth working day from the beginning of the week. WCAL is mandatory. |
–Dn,... |
Order the job on all working days except the nth working day from the beginning of the week. WCAL is mandatory. |
Ln,... |
Order the job on the nth working day counting from the end of the week. WCAL is mandatory. |
–Ln,... |
Order the job on all working days except the nth working day counting backward from the end of the week. WCAL is mandatory. |
DnWm,... |
(Where m = 1 through 6). If WCAL is defined, order the job on the nth working day of the mth week of the month. If WCAL is not defined, order the job on the mth appearance of the nth day of the week during the month. A maximum of eleven DnWm values can be specified. WCAL is optional. |
In the periodic scheduling formats described in Table 226
Table 226 Periodic Scheduling Formats
Format |
Description |
---|---|
DnPi,... |
Order the job on the nth day of period i in each week, from the beginning of the week. An * can be entered as the i value to represent all periods. |
–DnPi,... |
Order the job on all days except the nth day of period i in each week, from the beginning of the week. An * can be entered as the i value to represent all periods. |
LnPi,... |
Order the job on the nth day of period i in each week, counting backward from the last periodic day of the week. An * can be entered as the i value to represent all periods. |
–LnPi,... |
Order the job on all days in period i except the nth day of period i in each week, counting from the last periodic day of the week. An * can be entered as the i value to represent all periods. |
WARNING: Before you use the P* format of the periodic scheduling criteria, review example 11 below to ensure that you are aware of its proper functioning.
Parent Topic |