| 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> |
|
|
| From: | Robert Virgile <virgile@MEDIAONE.NET> |
| Subject: | Re: MACRO VARIABLE QUOTING |
|
| 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
|