CSE User's Manual

California Simulation Engine

4.2 HOLIDAY

HOLIDAY objects define holidays. Holidays have no inherent effect, but input expressions can test for holidays via the $DOWH, $isHoliday, $isHoliTrue, $isWeHol, and $isBegWeek system variables (4.6.4).

Examples and the list of default holidays are given after the member descriptions.

hdName

Name of holiday: must follow the word HOLIDAY.

UnitsLegal RangeDefaultRequiredVariability
63 charactersnoneYesconstant

A holiday may be specified by date or via a rule such as “Fourth Thursday in November”. To specify by date, give hdDateTrue, and also hdDateObs or hdOnMonday if desired. To specify by rule, give all three of hdCase, hdMon, and hdDow.

hdDateTrue=date

The true date of a holiday, even if not celebrated on that day.

UnitsLegal RangeDefaultRequiredVariability
dateblankNoconstant

hdDateObs=date

The date that a holiday will be observed. Allowed only if hdDateTrue given and hdOnMonday not given.

UnitsLegal RangeDefaultRequiredVariability
datehdDateTrueNoconstant

hdOnMonday=choice

If YES, holiday is observed on the following Monday if the true date falls on a weekend. Allowed only if hdDateTrue given and hdDateObs not given.

Note: there is no provision to celebrate a holiday that falls on a Saturday on Friday (as July 4 was celebrated in 1992).

UnitsLegal RangeDefaultRequiredVariability
YES/NOYESNoconstant

hdCase=choice

Week of the month that the holiday is observed. hdCase, hdMon, and hdDow may be given only if hdDateTrue, hdDateObs, and hdOnMonday are not given.

UnitsLegal RangeDefaultRequiredVariability
FIRST SECOND THIRD FOURTH LASTFIRSTNoconstant

hdMon=choice

Month that the holiday is observed.

UnitsLegal RangeDefaultRequiredVariability
JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DECnonerequired if hdCase givenconstant

hdDow=choice

Day of the week that the holiday is observed.

UnitsLegal RangeDefaultRequiredVariability
SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAYMONDAYrequired if hdCase givenconstant

endHoliday

Indicates the end of the holiday definition. Alternatively, the end of the holiday definition can be indicated by “END” or simply by beginning another object.

UnitsLegal RangeDefaultRequiredVariability
noneconstant

Examples of valid HOLIDAY object specifications:

    HOLIDAY MAYDAY;
        hdDateTrue = May 1;
    HOLIDAY MAYDAY;
        hdDateTrue = May 1;
        hdDateObs  = May 3;
    HOLIDAY MAYDAY;
        hdDateTrue = May 1;
        hdOnMonday = No;
    HOLIDAY HYPOTHET;
        hdCase = third;
        hdDow  = Wed;
        hdMon  = MAR

As with reports, Holidays are automatically generated for a standard set of Holidays. The following are the default holidays automatically defined by CSE:

New Year’s Day*January 1
M L King Day*January 15
President’s Day3rd Monday in February
Memorial Daylast Monday in May
Fourth of July*July 4
Labor Day1st Monday in September
Columbus Day2nd Monday in October
Veterans Day*November 11
Thanksgiving4th Thursday in November
Christmas*December 25

* observed on the following Monday if falls on a weekend, except as otherwise noted:

If a particular default holiday is not desired, it can be removed with a DELETE statement:

    DELETE HOLIDAY Thanksgiving

    DELETE HOLIDAY "Columbus Day"  // Quotes necessary (due to space)

    DELETE HOLIDAY "VETERANS DAY"  // No case-sensitivity

Note that the name must be spelled exactly as listed above.

Related Probes: