Chapter Contents |
Previous |
Next |
Doing More with SAS/ASSIST Software |
In this section, you first sort the ORANGES table in order of the store number because you group the transposed rows by store. Then you transpose the sorted table so that the price for the first variety of oranges becomes a row with a separate column for each day's price.
The following display shows a listing report of the ORANGES table before it is transposed.
Listing of ORANGES Table Before Transposing
Additional Information |
For additional information, refer to "The TRANSPOSE Procedure" in the SAS Procedures Guide.
Instructions |
Tasks | Data Management | Sort |
Sort a Table Window
ORGSORT
as the name
of the output table.
By leaving the default of Temporary, a temporary table is created in the WORK library. The WORK.ORGSORT table is deleted when you exit the SAS System. An indicator next to Temporary shows that this item is selected.
Run | Submit |
Tasks | Data Management | Utilities | Transpose Table |
Transpose a Table Window
ORGTRANS
as the name
of the output table, then select OK to return to
the Transpose a Table window.
By leaving the default of Temporary, a temporary table is created in the WORK library. The WORK.ORGTRANS table is deleted when you exit the SAS System. An indicator next to Temporary shows that this item is selected.
Additional Transpose Options Window
The SAS System generates a row for each column that is being transposed for each group.
Day
as the
prefix to each number that represents a day of the week.
Make sure each formatted value of the DAY column occurs only once in each group of the active table. Duplicate values produce a warning message in the LOG window and stop the procedure.
Run | Submit |
Transposed Table
Use the scroll bars or the RIGHT command or function key to display the rest of the transposed data.
File | Close |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.