Date: Mon, 18 Sep 2006 08:37:12 -0700
Reply-To: Reeza <fkhurshed@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Reeza <fkhurshed@HOTMAIL.COM>
Organization: http://groups.google.com
Subject: Nesting Macro Variables
Content-Type: text/plain; charset="iso-8859-1"
Hi All,
I'm trying to run some code using Macro's, but some of the nested
variables aren't resolving. I probably have some mistake in coding, so
any help is appreciated.
Thanks,
Reeza
%macro start();
%do i=1971 %to 1975;
data _null_;
call symput ('yr', i);
%put &yr;
%prepdata(&yr.);
run;
%end;
%mend start;
%start();
%macro prepdata(test);
data master;
merge sim.fixedpar sim.actualSM (where=(year=&test));
by RA;
if RA in (15 81 110) then delete;
rename RA=Risk_Area_ID;
run;
***Other Code follows;
%mend;
|