SAS Institute. The Power to Know

Base SAS(R) 9.2 Procedures Guide

Previous Page | Next Page

The CALENDAR Procedure

HOLIDUR Statement


Specifies the variable in the holidays data set that contains the duration of each holiday for a schedule calendar.
Alias: HOLIDURATION
Calendar type: Schedule
Default: If you do not use a HOLIDUR or HOLIFIN statement, then all holidays last one day.
Restriction: Cannot use with a HOLIFIN statement.
Featured in: Schedule Calendar with Holidays: 5-Day Default through Schedule Calendar, Blank or with Holidays

HOLIDUR variable;


Required Arguments

variable

contains the duration of each holiday.

Range: The duration can be a real or integral value.
Restriction: This variable must be in the holidays data set.
Featured in: Multiple Schedule Calendars with Atypical Work Shifts (Separated Output) and Multiple Summary Calendars with Atypical Work Shifts (Separated Output)

Holiday Duration

  • If you use both the HOLIFIN and HOLIDUR statements, then PROC CALENDAR uses the HOLIFIN variable value to define each holiday's duration.

  • Set the unit of the holiday duration variable in the same way that you set the unit of the duration variable; use either the INTERVAL= and DAYLENGTH= options or the CALEDATA= data set.

  • Duration is measured inclusively from the start of the holiday (as given in the HOLISTART variable). In the output, any holiday lasting at least half a day appears as lasting a full day.

Previous Page | Next Page | Top of Page