Within SAS, a missing
value for a numeric variable is smaller than all numbers. If you sort
your data set by a numeric variable, observations with missing values
for that variable appear first in the sorted data set. For numeric
variables, you can compare special missing values with numbers and
with each other. The following table shows the sorting order of numeric
values.
Numeric Value Sort Order
|
|
|
|
|
|
|
|
|
|
|
special missing values
A (smallest) through Z (largest)
|
|
|
|
|
|
|
|
|
|
For example, the numeric
missing value (.) is sorted before the special numeric missing value
.A, and both are sorted before the special missing value .Z. SAS does
not distinguish between lowercase and uppercase letters when sorting
special numeric missing values.
Note: The numeric missing value
sort order is the same regardless of whether your system uses the
ASCII or EBCDIC collating sequence.