Script Function: Checks whether a date is included in the calendarAn Automation Engine object type that defines a set of days based on calendar keywords. keyword
VALID_CALE(Date, Calendar, Calendar Keyword)
Syntax |
Description/Format |
---|---|
Date |
Indication of a date in the format "YYMMDD" or "YYYYMMDD". Format: script literal or script variable It is also possible to specify a different date format. Do so by entering the required date format, then enter a separator (: or ;) and afterwards the date. Indicating a date format is optional. |
Calendar |
Name of the Calendar objectAutomation Engine controlled activities and processes are structured in the form of objects. See also: Task |
Calendar Keyword |
Name of the calendar keywordThe attribute of a Calendar object that defines which days included in the calendar. |
Return codes |
---|
"Y" - The date is included in the
calendar keyword |
Optionally, you may specify a particular Date Format. The default Date Formats to be used are "YYMMDD" or "YYYYMMDD". A colon or semicolon may be used as a separator between Date Format and Date.
The example shown below checks if the current date is valid within the work schedule calendar. The return value of the functionPre-defined run book template in the Automation Engine. One single step only, e.g. Start Windows Service, Copy file,… is stored in a script variable.
:SET &CURDATE# = SYS_DATE()
:SET
&OPERATOR#=VALID_CALE(&CURDATE#,"READINESS","WORKDAY")
See also:
Script element | Description |
---|---|
Checks if the date is valid. | |
Checks if a time is valid. |
Script Elements - Date and Time
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by Function
Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support |
Copyright © 2016 Automic Software GmbH |