Date: Fri, 23 May 2003 17:48:02 -0400
Reply-To: Patricia Simon <patricia.simon@QUANTUM.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Patricia Simon <patricia.simon@QUANTUM.COM>
Subject: Removing Trailing Blanks from a Macro variable and Index
Hi,
I created a macro variable, IndepVar, that is concatenated with an Index
counter, i. When I refer to the macro variable in a chart title inside
proc gplot, it displays about 20 trailing blanks despite the trim
statement. How do I remove the trailing blanks?
Thank you,
Patty
data _null_;
set MaxGraphVars end=eof;
i+1;
ii=left(put(i,2.));
call symput (trim('IndepVar'||ii),_SOURCE_);
if eof then call symput('Total',ii);
run;
%macro CreateCharts;
%do i=1 %to &Total;
proc gplot data=rawdata uniform;
plot &&DepVar&i * &&IndepVar&i;
title2 "Raw Data: Varying &&IndepVar&i";
run;
quit;
%end;
%mend;
|