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 19:51:52 +0000
Reply-To:   toby dunn <tobydunn@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   toby dunn <tobydunn@HOTMAIL.COM>
Subject:   Re: quoting portions of macro variables in first pass, unquoting in 2nd pass
Comments:   To: jennifer_lin@CHIRON.COM
In-Reply-To:   <1131651761.170395.141480@g47g2000cwa.googlegroups.com>
Content-Type:   text/plain; format=flowed

jennifer ,

It works just fine on SAS 9.1.3 on Solaris box. I am wondering where are you calling these macros?

Toby Dunn

From: sassafras <jennifer_lin@CHIRON.COM> Reply-To: sassafras <jennifer_lin@CHIRON.COM> To: SAS-L@LISTSERV.UGA.EDU Subject: quoting portions of macro variables in first pass, unquoting in 2nd pass Date: Thu, 10 Nov 2005 11:42:41 -0800

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