SAS System Options |
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>) |
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.
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: | |||||
About Date and Time Intervals in SAS Language Reference: Concepts |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.