Date: Thu, 7 Apr 2005 10:16:40 -0700
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Nito Abad <abad@YAHOO.COM>
Subject: macro variable resolving with quotes
Content-Type: text/plain; charset=us-ascii
I beg the pardon of my SAS friends out there. After Toby sent me his
answer, I realized the problem was his first example. The macro
variable was created with quoted values and it was starring at me for
hours without realizing it. Our old beliefs still stands. Thank you
all for answering.
Tony, Without looking at the code you were using we would be well
guessing in the dark as to why your macro variable had quotes.
Ussually I see them with quotes when they are created several way
(which does not mean that these are the only ways.):
%let aaa = "alpha" ;
%let aaa = %quote(aaa) ;
%let aaa = %sysfunc(quote(aaa)) ;
proc sql ;
select quote(name) into : mac_var separated by " "
from whatever_data ;
There are many many more ways to get quotes, so show us some code and
help us help you.
"Forget the past, do your best now, damn the future." Nito Abad