SAS determines whether
a data set is already sorted by the key variable or variables in ascending
order by checking the sort indicator. The sort indicator is stored
in the data set descriptor information and is set from a previous
sort. For detailed information about how the sort indicator is used
and how it improves performance, see
The Sort Indicator in SAS Language Reference: Concepts and
SORTVALIDATE System Option in SAS System Options: Reference.
The following example
of the CONTENTS procedure
Sort Information section containing the
Validated attribute
set to NO, indicates that the data set was sorted using the SORTEDBY=
data set option.
Sort Information
Sortedby var1
Validated NO
Character Set ANSI