| The CALENDAR Procedure |
| Alias: | DURATION |
| Calendar type: | Schedule |
| Interaction: | If you use both a DUR and a FIN statement, then DUR is ignored. |
| Tip: | To produce a schedule calendar, you must use either a DUR or FIN statement. |
| Featured in: | All schedule calendars (see Examples: CALENDAR Procedure) |
| DUR variable; |
| Required Arguments |
contains the duration of each activity in a schedule calendar.
| Range: | The duration can be a real or integral value. |
| Restriction: | This variable must be in the activities data set. |
| See also: | For more information on activity durations, see Activities Data Set and Calendar Data Set |
| Duration |
Duration is measured inclusively from the start of the activity (as given in the START variable). In the output, any activity that lasts part of a day is displayed as lasting a full day.
The INTERVAL= option in a PROC CALENDAR statement automatically sets the unit of the duration variable, depending on its own value as follows:
| INTERVAL= | Default Length of the Duration Unit |
|---|---|
| DAY (the default) | 24 hours |
| WORKDAY | 8 hours |
You can override the default length of a duration unit by using
the DAYLENGTH= option
a D_LENGTH variable in the CALEDATA= data set.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.