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

st: I'll never understand quotes


From   "FEIVESON, ALAN H. (AL) (JSC-SK) (NASA)" <[email protected]>
To   "statalist (E-mail)" <[email protected]>
Subject   st: I'll never understand quotes
Date   Tue, 17 Jun 2003 16:09:26 -0500

Hello - could someone please explain why statement #3 below fails if I put
double quotes around `sdir', but statement #2 needs to have double quotes?

1.	args gog sdir
2.	gen str5 sdir = "`sdir'" 
3.	save gait_`gog'_`sdir', replace   (works)
3.	save gait_`gog'_"`sdir'", replace   (fails)

Thanks

Al Feiveson







*
*   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