Date: Thu, 22 Sep 2005 03:49:17 -0400
Reply-To: Jim Groeneveld <jim1stat@YAHOO.CO.UK>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jim Groeneveld <jim1stat@YAHOO.CO.UK>
Subject: Re: problem resolving macro variables
Hi Sravanti,
I'm not at all sure, but you could try doubling the percent sign as in:
%label(time,&lab.pct&i,"*&&N&i/&&pct&i%%/&&tpct&i", black,0,0,1,zapf,6|<);
Regards - Jim.
--
Y. (Jim) Groeneveld, MSc., Biostatistician, Vitatron b.v., NL
Jim.Groeneveld_AT_Vitatron.com (replace _AT_ by AT sign)
http://www.vitatron.com, http://home.hccnet.nl/jim.groeneveld
My computer always teaches me something new I thought I knew already.
[common disclaimer]
On Wed, 21 Sep 2005 11:20:15 -0700, Sravanti Kuppili <ksravanti@GMAIL.COM>
wrote:
>Hi all,
> I am trying to label the plot lines in SAS GRAPH.
>Here is the piece of code i wrote to do that.
>In this, the macro variable "&&tpct&i" is getting resolved and displayed
>twice
>where as the other two macro variables are displayed correctly.
>
>%do i=1 %to &numgrp;
>
>data anno&i;
>
>%dclanno;
>
>set &lab.pct_&i end=last;
>
>length text $30;
>
>%system (2,2);
>
>if last then do;
>
>%label(time,&lab.pct&i,"*&&N&i/&&pct&i%/&&tpct&i", black,0,0,1,zapf,6|<);
>
>end;
>
>%end;
>
>Here is the sample output i got : *322/33%/96/96.
>
>Can anyone please tell me why is the last macro variable is getting
>displayed twice?
>
>I greatly appreciate your help.
>
>Thank you,
>Sravanti.
|