|
Can I incorporate dates into variables that are updated over time?
EnterpriseSCHEDULE 7.1.16 and above introduces the concept of date variables that use keywords such as “NOW”, “TODAY” and “YESTERDAY” as the base time and allow
date math to build variable expressions. Variable expressions are in addition to the previous concept of String expressions (which still exist in EnterpriseSCHEDULE)
Many jobs require accurate date data as parameters to allow automation of the jobs commands.Date expressions add whole new dimension of time to variables. For instance if you want a variable to
return four days after the beginning of the month, you could create a date variable with the value
"BEGINNING_OF_MONTH" + 4 days
When the variable is evaluated, the value would be calculated, using the first day of the current month and adding 4 days. Likewise if you want a variable to represent the current time plus 4 hours
and 15 minutes, you could create a variable with the value
"NOW" + 4 hours + 15 minutes
These expressions can then be incorporated into your job’s commands list using EnterpriseSCHEDULE’s preprocessor syntax
((variable_name))
Examples:
(("12-jan-2007" + 1 MONTH)) February 12, 2007,0:00 (("BOM" + 12DAYS)) 12 days after first of this month
(("MONDAY" + 2 WEEKS)) 2 weeks from next Monday
If you have questions about how to incorporate date variable expressions into your jobs or a specific date variable expression, see section 3.2 of the EnterpiseSCHEDULE Reference Manual or the
Variable Expression section of the Windows Help File.
Click here to see the many preset Date Variables that come with EnterpriseSCHEDULE
|