INTERVALDS= System Option

Specifies one or more interval name-value pairs, where the value is a SAS data set that contains user-supplied intervals. The intervals can be used as arguments 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.
Note: This option can be restricted by a site administrator. For more information, see Restricted Options.

Syntax

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-defined 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.

Example

This example assigns a single data set to an interval on the SAS command line or in a configuration file.
-intervalds (mycompany=mycompany.storeHours)
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.storeHours 
        subsid1=subsid.storeHours subsid2=subsid.storeHours);

See Also

“Custom Time Intervals” in the SAS/ETS User’s Guide
About Date and Time Intervals in SAS Language Reference: Concepts
Functions:
INTCK Function in SAS Functions and CALL Routines: Reference
INTNX Function in SAS Functions and CALL Routines: Reference