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 (November 2010, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 11 Nov 2010 23:22:11 -0500
Reply-To:   Arthur Tabachneck <art297@ROGERS.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Arthur Tabachneck <art297@ROGERS.COM>
Subject:   Re: better way rotating this data set
Comments:   To: Bbser 2009 <bbser2009@GMAIL.COM>

Max,

How about:

proc transpose data=temp out=temp1; run;

Art -------- On Thu, 11 Nov 2010 23:10:05 -0500, bbser 2009 <bbser2009@GMAIL.COM> wrote:

>This is my way rotating the one-column data set temp, is there a better way >to do this? > >data temp; >input x; >cards; >1 >2 >3 >; > >data temp1; > array y{3}; > do i=1 to 3; > set temp point=i; > y[i]=x; > if i=3 then output; > end; > stop; >run; > >proc print; >run;


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