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 (May 2001, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 10 May 2001 10:11:37 -0500
Reply-To:   Eishi Adachi <eishi13@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Eishi Adachi <eishi13@HOTMAIL.COM>
Subject:   Macro question
Content-Type:   text/html

<html><DIV> <P><BR><BR></P> <DIV></DIV> <P>Hi everybody,</P></DIV> <P>I have a question about macro.</P> <DIV></DIV> <P>&nbsp;I repeat the same proc about 30 times to transfer multivariate to univariate dataset.</P> <DIV></DIV> <P>I believe macro can make this simpler, but I am not really familiar with macro. The program which I have made is as follows;<BR>&nbsp;</P> <DIV></DIV> <P>data one;</P> <DIV></DIV> <P>set d1;</P> <DIV></DIV> <P>keep var a b c d&nbsp; y1 y2 y3;</P> <DIV></DIV> <P>proc transpose data=one out=one name=time prefix=y;</P> <DIV></DIV> <P>var y1 y2 y3;</P> <DIV></DIV> <P>by a b c d;</P> <DIV></DIV> <P>run;</P> <DIV></DIV> <P>*/ The program repeats this two steps about 30 times. Then merge all of them at end. Only y1 y2 y3, prefix, and data name change. Other variables are same in all procs.&nbsp; </P> <DIV></DIV> <P><BR>&nbsp;</P> <DIV></DIV><br clear=all><hr>Get your FREE download of MSN Explorer at <a href="http://explorer.msn.com">http://explorer.msn.com</a><br></p></html>


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