Date: Wed, 19 Mar 2003 20:53:49 +0100
Reply-To: Peter Crawford <peter.crawford@DB.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Peter Crawford <peter.crawford@DB.COM>
Subject: is macro generated text mquoted
Content-type: text/plain; charset=iso-8859-1
platforms winNT, aix, os/390 sas versions v8.1, v8.2, v9.0
(but not all on all)
I discovered I needed %unquote() in
%put %sy(remote) = %unquote(&&%msyo(remote)) ;
The macro %sy returns the value of a system option with keyword
and %msyo, does the same but without the keyword
If remote is the only option which holds the name of a macro var,
then there isn't much use for this construct. But it is interesting.......
that to use the text generated by a macro as the name of a macro
var, I have to %unquote() the combination !
and, final question,
Why does it need double &
HTH
Peter Crawford
%macro sy( op); %sysfunc( getoption( &op, keyword)) %mend;
%macro msyo(op); %sysfunc( getoption( &op )) %mend;
--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.