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
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
%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
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?