Date: Tue, 12 Mar 1996 11:23:36 -0500
Reply-To: Igor Firkusny <igor_firkusny@ABTASSOC.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Igor Firkusny <igor_firkusny@ABTASSOC.COM>
Subject: Re: descriptive statistics
I don't believe you can get them printed alphabetically directly from
MEANS. One solution might be to use the OUTPUT option on MEANS or
SUMMARY to create an output data set, and the use PROC PRINT or
whatever to print the results. This way you could specify the order of
the output variables. Might be a pain in the neck typing all those var
names, though...short cuts would include using PROC CONTENTS to create
an alphabetized list of vars, and pasting that into your VAR stmt; or
using TRANSPOSE on the result, sorting by var name, and printing that
Hope this helped. good luck
Abt Associates Inc.
______________________________ Reply Separator _________________________________
From: Jin Qian
To: schechte; Multiple recipients of list SAS-L
Subject: descriptive statistics
Date: Monday, March 11, 1996 8:12PM
I have a simple question about getting descriptive statistics in SAS.
My data file has over five hundreds variables and I want to get
descriptive statistics in alphabetical order. However, when I use
PROC MEANS or PROC SUMMARY, what I got was a print out sorted by the
position of all my variables in the data set. I failed to find out
how to make it sorted alphabetically.
Is there an option that I can set in PROC MEANS or PROC SUMMARY?
Many thanks in advance.
International Food Policy Research Insititute.