![]() Chapter Contents |
![]() Previous |
![]() Next |
| The SORT Procedure |
| Sorting Orders for Numeric Variables |
For numeric variables, the smallest-to-largest comparison sequence is
| Sorting Orders for Character Variables |
The operating environments that use the EBCDIC collating sequence include CMS and OS/390.
The sorting order of the English-language EBCDIC sequence is
| blank . < ( + | & ! $ * ) ; ¬ - / , % _ > ?: # @ ' = " | |
| a b c d e f g h i j k l m n o p q r ~ s t u v w x y z | |
| { A B C D E F G H I } J K L M N O P Q R \S T | |
| U V W X Y Z | |
| 0 1 2 3 4 5 6 7 8 9 |
The operating environments that use the ASCII collating sequence include
| Macintosh | PC DOS |
| MS-DOS | UNIX and its derivatives |
| OpenVMS | Windows |
| OS/2 |
From the smallest to largest displayable character, the English-language ASCII sequence is
| blank ! " # $ % & ' ( ) * + , - . /0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ | |
| A B C D E F G H I J K L M N O P Q R S T U V W X Y Z[ \] ˆ_ | |
| a b c d e f g h i j k l m n o p q r s t u v w x y z { } ~ |
| Stored Sort Information |
If you want to change the sort information for an existing data set, use the SORTEDBY= data set option in the MODIFY statement in the DATASETS procedure. To access the sort information that is stored with a data set, use the CONTENTS statement in PROC DATASETS. For details, see The DATASETS Procedure.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.