LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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;


Back to: Top of message | Previous page | Main SAS-L page