| 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> 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> </P>
<DIV></DIV>
<P>data one;</P>
<DIV></DIV>
<P>set d1;</P>
<DIV></DIV>
<P>keep var a b c d 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. </P>
<DIV></DIV>
<P><BR> </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>
|