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 selects the one that it determines will provide 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 that
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= will not process the request.
That is, IDXNAME= will not allow you to specify an index that would
produce incorrect results.