Summary
Text Summary
Using Indexes
An index is a SAS file
that is associated with a data set and that contains information about
the location and the values of key variables in the data set. Indexes
enable SAS to directly access specific observations rather than having
to read all observations sequentially. An index can be simple or composite.
Creating Indexes in the DATA Step
You can create an index at the same time that you create a data set by using the INDEX= option in the DATA statement. Both simple and composite indexes can be unique, if there are no duplicate values for any key variable in the data set. You can create multiple indexes on one data set. You can use the MSGLEVEL= system option to write informational messages to the SAS ...
Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.