LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (November 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 13 Nov 2002 15:21:20 GMT
Reply-To:     Tim Berryhill <tim@AARTWOLF.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Tim Berryhill <tim@AARTWOLF.COM>
Organization: Concentric Internet Services
Subject:      Re: Unquoting quotes

Graeme, Others have already suggested you omit the quotes initially, and I agree. Further, you may need to set the DQUOTE option, which allows macro variables to resolve inside double quotes (they will still not resolve inside single quotes). Then you can code:

OPTION DQUOTE; %let devices=SM06 SM07; PROC PRINT DATA=STUFF; TITLE2 'Example of Resolving &devices'; TITLE3 "Details for Processing &devices"; RUN;

I would expect to see the name of the macro variable in TITLE2 (along with the &), and the value of the variable in TITLE3.

You might want to look for #BYVAR in the documentation. If a PROC uses a BY statement, both the names and the values of the BY variables are available for inclusion in TITLE statements. I mention this because it seems silly to use macro coding to embed a constant in a title, and it is a pity to run many runs selecting different values of &devices when a BY statement could report them all in one run.

Tim Berryhill does anyone know what nodots-daemon is about? Care to share? <Graeme.Kirton@FILCS.COM> wrote in message news:OFDA561256.465BBB17-ON80256C70.0038DD19-80256C70.0038D9C4@fcs.com... > Hiya, I need to unquote a string into a macro variable so I can use it in > a title statement, as Im getting errors from; > > %let devices="SM006" "SM007"; /*TITLE NEED TO INCLUDE THESE*/ > %let myquote=%unquote(&devices); /*ATTEMPT*/ > %put &myquote; > > Wants to read, SM006 SM007. > > Cheers > > -------------------------------------------------------------- > Graeme Kirton > IT Developer > Filtronic Compound Semiconductors Ltd > 01325 306094


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