By default, to satisfy
the conditions of a WHERE expression for an indexed SAS data set,
SAS identifies zero or more candidate indexes that could be used to
optimize the WHERE expression. From the list of candidate indexes,
SAS determines the one that provides the best performance, or rejects
all of the indexes if a sequential pass of the data is expected to
be more efficient.
Because the index SAS
selects might not always provide the best optimization, you can direct
SAS to use one of the candidate indexes by specifying the IDXNAME=
data set option. If you specify an index that SAS does not identify
as a candidate index, then IDXNAME= does not process the request.
That is, IDXNAME= does not allow you to specify an index that would
produce incorrect results.