LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 1996, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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[2]: descriptive statistics

Jin Qian,

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 data set.

Hope this helped. good luck

Igor Firkusny Abt Associates Inc. Cambridge, MA

igor_firkusny@abtassoc.com

______________________________ Reply Separator _________________________________

From: Jin Qian To: schechte; Multiple recipients of list SAS-L Subject: descriptive statistics Date: Monday, March 11, 1996 8:12PM

Dear SAS-Lers:

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.

Jin Qian International Food Policy Research Insititute.


Back to: Top of message | Previous page | Main SAS-L page