Determining if there is a holidays on a given date

Navigation:  Appendices > Macro Language > Built-in Functions > Holidays > Using Holidays Functions >

Determining if there is a holidays on a given date

Previous pageReturn to chapter overviewNext page

Typically when you use holidays inside Macros, you want to perform specific actions if there is a holiday on the date of the macro token being evaluated, and you will not care too much what the name of the actual holiday is.


In those cases you would then use one of the many functions that only check for the occurrence of a holiday :


bRESULT = IsHolidayForList(n_TokenDate,'a')

bRESULT = IsHolidayForSet(n_TokenDate, nSetId)

bRESULT = IsHolidayOccurence(n_TokenDate, nHolRuleId)

bRESULT = HolidayOfListInPeriod('a', nDate1, nDate2)

bRESULT = HolidayOfSetInPeriod(nSetId, nDate1, nDate2)

bRESULT = HolidayOfListOnDate('a', nDate)

bRESULT = HolidayOfSetOnDate(nSetId, nDate1)


Refer to each function's corresponding topic to determine which one is best suited to each case.

Topic 171770 updated on 06-Mar-2002.
Topic URL: