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 (November 2005, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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


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