Chapter Contents |
Previous |
Next |
Sorting |
proc sort data=information; by State ZipCode; run;
As a general rule, when you use PROC SORT, specify the variables in the BY statement in the same order that you plan to specify them in the BY statement in the DATA step. For a detailed description of the default sorting orders for numeric and character variables, see the SORT procedure in the SAS Procedures Guide.
Indexing |
Note: Because indexes require additional resources to create and maintain, you should
determine if their use significantly improves performance. Depending on the
nature of the data in your SAS data set, using PROC SORT to order data values
can be more advantageous than indexing. For an overview of indexes, see SAS Indexes.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.