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 (August 1998, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 19 Aug 1998 13:05:17 -0400
Reply-To:     Undetermined origin c/o LISTSERV administrator
              <owner-LISTSERV@VTVM1.CC.VT.EDU>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
Comments:     RFC822 error: <E> "From:"/"Sender:" field is missing.
From:         Undetermined origin c/o LISTSERV administrator
              <owner-LISTSERV@VTVM1.CC.VT.EDU>

<06E5B35C5E557011*/c=GB/admd=telemail/prmd=Unilever/o=Unilever/ou=Hydra/ou=ccMa il/s=Rogers/g=Bruce/@MHS> Date: 03 Aug 1998 17:29:11 +0100 From: Bruce Rogers <Bruce.Rogers@unilever.com> To: Giovanni.Ferro-Luzzi@ecopo.unige.ch (IPM Return requested) cc: SAS-L <sas-l@vtvm1.cc.vt.edu> (IPM Return requested) Subject: Re[2]: quoting problem within macro loop

Giovanni,

Basically, SAS will _never_ resolve a macro variable referenced within single quotes. Double quotes can be used instead of single quotes anywhere within the SAS language. As far as I'm aware, this is the only difference between them.

Happy to help Bruce

______________________________ Reply Separator _________________________________ Subject: Re: quoting problem within macro loop Author: Giovanni.Ferro-Luzzi@ecopo.unige.ch at INTERNET Date: 03/08/98 16:18

>The solution is to simply use double quotes instead of single. e.g. > >%macro flat; > %do i=1 %to 3 ; > data _null_; > set a&i; > file "a&i txt b1"; > put x y z; > run; > %end; >%mend flat; > >HTH >Bruce

Thanks a lot Bruce for your simple, though efficient solution. I tried and it works. I thought that double quotes were restricted to title statements. I'm still puzzled by the problem with single quote, but I think I can live without it and use double quotes instead...

Thanks again very much for your help.

-Giovanni

********************************************************************** Giovanni Ferro Luzzi <Giovanni.Ferro-Luzzi@ecopo.unige.ch> Dep. of Political Economy - University of Geneva 102, bd Carl Vogt ; CH-1211 Geneve 4 / Switzerland voice : (+ 41 22) 705 82 66 fax: (+ 41 22) 705 82 93


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