Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: macro - expansion problem


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: macro - expansion problem
Date   Mon, 14 Feb 2005 11:42:33 -0000

The outside quotes are necessary because
the inside ones are. To put it otherwise, 
 " " " " is ambiguous. 

Nick 
[email protected] 

Fred Wolfe
 
> Thank you very much. That does work. I had tried compound 
> quotes inside the 
> brackets but not inside together with `"  "' on the outside. 
> I'll have to 
> think about it more, as I am not sure that I understand why 
> the outside compound quotes should be necessary.
 

At 02:44 AM 2/14/2005, you wrote:

> >This is just a question of quoting the filename (and so 
> compound-quoting 
> >the -write- statement)...
> >
> >file write `wfile' `"View {view  "`fname'"}"' _n
> >
> >On a quick test, this appears to work.
> >

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index