LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (April 2001, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 25 Apr 2001 14:04:32 -0400
Reply-To:   Xiaoyuan <zhux@FLCOURTS.ORG>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Xiaoyuan <zhux@FLCOURTS.ORG>
Subject:   Resolution of Macro variable.

I work on a huge court data set, and have to produce 670 tables monthly(67 counties multiply 10 tables). I use "proc printto" to route procedure outputs to our server. That's okay. But when I try to seperate those tables into 67 files county by county in one folder, the resolution of macro variable doesn't work. Here is what I did.

%macro county; %do n=1 %to 67; %let cnty=&n; proc printto print='k:\MasterData\SRS\county\SRSpage1&cnty..rtf'; run; proc print data=county; run; proc printto;run; %end; %mend county; %county();

"cnty" cannot be resolved in the above case. Is something wrong? Or macro variables cannot be resolved in the path. I appreciate any direction.

Xiaoyuan


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