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 (August 2001, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 10 Aug 2001 10:46:05 -0700
Reply-To:     Rachel Pearce <rpearce@U.WASHINGTON.EDU>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Rachel Pearce <rpearce@U.WASHINGTON.EDU>
Organization: University of Washington
Subject:      Macro "array" warnings

Hello all,

I wonder if someone can help me with this simple but annoying problem. I am probably doing something fundamentally wrong, but here goes:

I have defined an "array" of macro variables took1.... took9, and another array supp1...supp60. Now when I want to look at these variables and compare them, I do things like:

%if %index(%str(%upcase(&took&j)),%upcase(&supp&i))>0 %then %do;

Now this gets me in *lots* of trouble as I get warning messages:

WARNING: Apparent symbolic reference TOOK not resolved. WARNING: Apparent symbolic reference SUPP not resolved.

Now of course they are not resolved, it is the subscripted "array" I want resolved, but as these %ifs are inside loops I get thousands and thousands of warning messages, and consequently either fill the log window or get huge unreadable log files. Can I avoid these messages somehow? Is there something wrong with my macro variable referencing?

Rachel


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