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 (May 1999, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 6 May 1999 15:55:46 -0700
Reply-To:   Robert Virgile <virgile@MEDIAONE.NET>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
Comments:   To: Phil Schaeffer <Phil.Schaeffer@FAA.GOV>
Comments:   To: SAS-L@LISTSERV.VT.EDU
From:   Robert Virgile <virgile@MEDIAONE.NET>
Subject:   Re: MACRO VARIABLE QUOTING
Comments:   To: SAS-L@LISTSERV.VT.EDU
Content-Type:   text/plain; charset=us-ascii

I'm not in a position to test this at the moment, but it seems off the top of my head that this would work:

CD = %unquote(%str(" '&dir' "))

Phil Schaeffer wrote:

> I would like to use %let to assign a text string within a filename FTP > statement. However, the > text string (i.e, the resolved macro variable value) must be contained within a > set of single quotes and a set of double quotes. I want < %LET DIR=CZDF; RUN; > > to produce > > filename CHECK ftp " " > host='10.4.16.2' > CD=" 'CZDF' " > user='bC20A5F' > pass='xxxxx' > LIST > debug; > RUN; > > As I am also using macro variable &DIR in other code, I do not want to include > the > quotes as part of the %let statement by means of %str. > > Thanks. > > Phil Schaeffer, FAA Headquarters


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