| Date: | Sat, 7 Apr 2007 03:34:31 +0000 |
| Reply-To: | toby dunn <tobydunn@HOTMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | toby dunn <tobydunn@HOTMAIL.COM> |
| Subject: | Re: An easy macro question? |
|
| In-Reply-To: | <200704070308.l36KIFbC017687@malibu.cc.uga.edu> |
| Content-Type: | text/plain; format=flowed |
|---|
Ya ,
I have no clue what you are doing but seems you have coded yourself into a
macro corner try this somewhat weird use od %SuperQ.
%let trt1 = F ;
%let trt2 = M ;
%let M_H = 45 ;
%let F_H = 3.241 ;
%let i = 1 ;
%let a = %SuperQ(&&trt&i.._H) ;
%Put &A ;
Toby Dunn
You can see a lot by just looking. ~Yogi Berra
Do not seek to follow in the footsteps of the wise. Seek what they sought.
~Matsuo Basho
You never know what is enough, until you know what is more than enough.
~William Blake, Proverbs of Hell
From: Ya Huang <ya.huang@AMYLIN.COM>
Reply-To: Ya Huang <ya.huang@AMYLIN.COM>
To: SAS-L@LISTSERV.UGA.EDU
Subject: An easy macro question?
Date: Fri, 6 Apr 2007 23:08:36 -0400
This has to be something very easy, but at this moment, I am stumped:
1 %let trt1=F;
2 %let trt2=M;
3 %let M_H=45;
4 %let F_H=3.241;
5 %let i=1;
6
7 %let a=&&trt&i.._H;
8 %put &a;
F_H
I was hoping to get &a = 3.241
I tried to add more &, but to no avail.
_________________________________________________________________
The average US Credit Score is 675. The cost to see yours: $0 by Experian.
http://www.freecreditreport.com/pm/default.aspx?sc=660600&bcd=EMAILFOOTERAVERAGE
|