The following rules govern the coding of TOD event specifiers:
If the starting date/time specification contains a time, and the ending date/time specification does not, the time part of the starting date/time specification is used for the ending date/time specification. For example, given the following starting and ending specifications, the rule would execute Monday, Tuesday, Wednesday, Thursday, and Friday at 08:00 on each day:
)TOD MONDAY 8:00, DAY, FRIDAY
If the Start-time contains only a time value, with an interval unit of HOURS, MINS, or SECS, and no End-time is specified, then the default End-time would be midnight each day. For example, given the following TOD specifications, the rule would execute starting at 15:00 every day, and then execute every 5 minutes until midnight:
)TOD 15:00,5 MINS
If the Start-time contains a day of the week value, with an interval unit of HOURS, MINS, or SECS, and no End-time is specified, then the default End-time would be Sunday at 00:00:00. For example, given the following TOD specifications, the rule would execute starting on Tuesday 08:00, and then execute every 1 hour until Sunday at 00:00:00 and resume again on Tuesday at 08:00:
)TOD TUESDAY 08:00,1 HOUR
If the TOD specifier contains just a starting specification that contains a day of the week and time value, then the default End-time would be on a week boundary. For example, given the following TOD specifier, the rule would execute every Friday at 06:00:00:
)TOD FRIDAY 06:00:00
21 JAN 2002 1:20
Omitting the executing date causes the rule to execute every day. If the time is omitted, CA OPS/MVS assumes it to be 00:00:00, midnight (there is an exception, which is noted in the next rule).
)TOD FRIDAY,DAY,MONDAY
The correct method to create a TOD rule that executes at midnight on Friday, Saturday, Sunday, and Monday is:
)TOD FRIDAY,DAY,SATURDAY
SUNDAY,DAY,MONDAY
)TOD MONDAY,,2002/10/14
because the ending date/time specification is in day-of-year format while the starting date/time specification is in day-of-week format.
Note: CA recommends that you code these options on the first event specifier.
|
Copyright © 2011 CA.
All rights reserved.
|
|