|Scheduling a task to run on the first Monday of the month.|
|Date Updated - 7/16/03|
User needs to schedule a task (TaskTitle = TaskX) to run on the first Monday of the month, at 6:00 AM. Automize scheduler currently does not support this type of schedule. However, this schedule can be obtained by using a Variable monitor task. This solution is possible in version 5.3 and later.
1) Create an extra Variable monitor task using the following parameters:
Variable Name = $%DATE::dwm%$
Variable value = 1
Comparison Type = equals or =
Task to Run = TaskX (i.e. task that needs to run on first Monday of month)
2) Schedule the Variable monitor task using the following parameters:
Frequency = 1
Type = Week
Date/time = 6:00 AM
Day = Monday
The first Monday of the month should always lie between dates 1-7. The Day in Week of Month (dwm) = 1, for dates 1-7. i.e. the first Monday of the month should have dwm = 1.
The Variable monitor task will be triggered every Monday at 6:00
AM. It will then check the value of the Variable 'dwm'. If
dwm = 1, it will trigger the task TaskX to run. If dwm > 1, it
will not trigger TaskX to run. Hence the task TaskX will be run
only on the first Monday of the month.