Specifies whether SAS uses an index search or a sequential search to match the conditions of a WHERE clause.
Category: | User Control of SAS Index Usage |
Restrictions: | Use with input data sets only |
SAS data sets: Cannot be used with IDXNAME= | |
SPD Engine data sets: IDXWHERE=NO cannot be used with WHERENOINDEX= | |
Data source: | SAS data set, SPD Engine data set |
tells SAS to choose the best index to optimize a WHERE clause, and to disregard the possibility that a sequential search of the data set might be more resource-efficient. This is the default value.
tells SAS to ignore all indexes and satisfy the conditions of a WHERE clause with a sequential search of the data set.
Notes | You cannot use the IDXWHERE= table option to override the use of an index to process a BY statement. |
You cannot use the WHERENOINDEX= table option when IDXWHERE=NO is used. |
create table mydata.empnew as select * from mydata.employee {option idxwhere=yes} where empnum < 2000;