Date: Thu, 10 Nov 2005 11:42:41 -0800
Reply-To: sassafras <jennifer_lin@CHIRON.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: sassafras <jennifer_lin@CHIRON.COM>
Organization: http://groups.google.com
Subject: quoting portions of macro variables in first pass,
unquoting in 2nd pass
Content-Type: text/plain; charset="iso-8859-1"
Here's what I'm trying to do:
GLOBAL cregion1 = AU
GLOBAL area = region
LOCAL i = 1
I need to put something like "&&c&area&i" in my code. I was thinking
that this would resolve as &cregion1 in the first pass, and then as AU
in the second pass.
But I can tell that SAS is trying to interpret &c as a macro variable
because I get this message in the log: "WARNING: Apparent symbolic
reference C not resolved."
Is there a way to quote the ampersand in front of the c for the first
pass, and then unquote it for the 2nd pass?
Thanks in advance for your help!
J