When you use the IDXBY=
LIBNAME option, make sure that you use BYSORT=YES option and that
the BY variable is indexed.
In some cases, you might
get better performance from the SPD Engine if you automatically sort
the data. To use the automatic sort, BYSORT=YES must be set and you
should specify IDXBY=NO.
Set the SAS system option
MSGLEVEL=I so that the BY processing information is written to the
SAS log. When you use the IDXBY= LIBNAME option and the BYSORT=YES
option, the following messages are written to the SAS log:
-
If IDXBY=YES and there is an index
on the BY variable, the index is used to order the rows of the table.
The following message is written to the SAS log:
NOTE: BY ordering was produced by using an index for
table tablename.
-
If you use IDXBY=NO, the following
message is written to the SAS log:
NOTE: BY ordering was produced by performing an automatic sort
on table tablename.