LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (October 2003, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 29 Oct 2003 07:55:55 -0500
Reply-To:   "Goldman, Brad (AT-Atlanta)" <Brad.Goldman@AUTOTRADER.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Goldman, Brad (AT-Atlanta)" <Brad.Goldman@AUTOTRADER.COM>
Subject:   Order of output rows of Transposed dataset
Content-Type:   text/plain; charset="iso-8859-1"

Input, dataset A: Obs Pageview Visitors Cars Dealers 1 100 10 50 60

Code: proc transpose data=a out=b (drop=_label_); run;

Output, dataset B: _name_ col1 Cars 50 Dealers 60 Pageview 100 Visitors 10

I would like B to appear in the order the variables were in dataset A. That is: Desired Output: _name_ col1 Pageview 100 Visitors 10 Cars 50 Dealers 60

I can't find an option in proc transpose to do this. What is the best way to get dataset B in the order I need it?

Thank you! Brad Goldman


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