Previous Page | Next Page

SAS System Options

INTERVALDS= System Option

Specifies one or more interval name and value pairs, where the value is a SAS data set that contains user-supplied holidays. The interval can be used as an argument to the INTNX and INTCK functions.
Valid in: configuration file, SAS invocation, OPTIONS statement, SAS System Options window
Category: Input control: Data processing
Requirement: The set of interval-value pairs must be enclosed in parentheses.

Syntax Description
See Also


INTERVALDS=(interval-1=libref.dataset-name-1 <interval-n=libref.dataset-name-n>)

Syntax Description


specifies the name of an interval. The value of interval is the data set that is named in libref.dataset-name.

Requirement: When you specify multiple intervals, the interval name must not be the same as another interval.

specifies the libref and the data set name of the file that contains user-supplied holidays.


The INTCK and INTNX functions specify interval as the interval name in the function argument list to reference a data set that names user-supplied intervals.

The same libref.dataset-name can be assigned to different intervals. An error occurs when more than one interval of the same name is defined for the INTERVALDS system option.


This example assigns a single data set to an interval on the SAS command line or in a configuration file.

-intervalds (mycompany=mycompany.holidays)

The next example assigns multiple intervals using the OPTIONS statement. The intervals subsid1 and subsid2 are assigned the same libref and data set name.

options intervalds=(mycompany=mycompany.holidays subsid1=subsid.holidays subsid2=subsid.holidays);

See Also


INTCK Function

INTNX Function

About Date and Time Intervals in SAS Language Reference: Concepts

Previous Page | Next Page | Top of Page