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
PROC OPTIONS GROUP= INPUTCONTROL
Requirement: The set of interval-value pairs must be enclosed in parentheses.

Syntax
Syntax Description
Details
Examples
See Also

Syntax

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


Syntax Description

interval

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.
libref.dataset-name

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


Details

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.


Examples

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

Functions:

INTCK Function

INTNX Function

About Date and Time Intervals in SAS Language Reference: Concepts

Previous Page | Next Page | Top of Page