SORT
The SORT command allows the user to sort data. A variable which will be used to sort the data must be specified. When completed, all observations of the specified variables will be rearranged in ascending or descending order according to the ranking in the sort variable.
In general, the format is:
SORT sortvar vars / options
The available options are:
OPTION |
DESCRIPTION |
beg= |
Specifies the BEGinning observation for the given SORT command. If this is not specified, the current SAMPLE range is used. |
desc |
Specifies that the variables are to be to be sorted in DESCending (rather than ascending) order according to the ranking in the sort variable. |
end= |
Specifies the ENDing observation for the given SORT command. If this is not specified, the current SAMPLE range is used. |
list |
LISTs the sorted data in the vars and the sortvar on the SHAZAM output. |
|