Chapter Contents |
Previous |
Next |
Getting Started with the SAS System Using SAS/ASSIST Software |
Instructions |
Tasks | Data Management | Sort... |
Sort a Table Window
File | New |
Specify Output Table Window
An output table enables you to store the sorted table separately from the original table. If you do not select an output table, the sorted table overwrites the original table.
STYLE
as the name of the output table in which you want to store the sorted data. See SAS Tables for details on assigning names to
tables.
Note: Replace if existing enables you to replace the data in an existing table with the newly sorted data. If the STYLE table already
exists, you can use this item to store the newly sorted data in place of whatever was currently stored in the STYLE table. Otherwise, you get an error message stating that the STYLE table already
exists. You can either enter another name for the table or select Replace if existing to replace the existing
data.
Select the libref for the location where you want to store the data, for example, the SASUSER libref. The table STYLE is stored in the library whose libref is SASUSER, and remains there until you delete it.
A libref specifies the SAS data library in which you want to store the sorted data. Refer to SAS Data Libraries for more information about librefs.
Select the Ordering of Columns Window
You can choose to order the data in ascending, descending, or mixed order.
BY Column Sort Order Window
Run | Submit |
Successful Sort Message
Refer to Editing and Browsing Data for more information about editing and browsing data.
Sorted Houses Table
The styles of houses are listed alphabetically. Houses with a style of CONDO are first in the table. Within each style, the houses are listed from largest to smallest.
Exiting This Task |
When you are finished looking at your sorted table, follow this selection path:
File | Close |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.