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

RE: st: RE: foreach syntax


From   Devra Golbe <[email protected]>
To   [email protected], [email protected]
Subject   RE: st: RE: foreach syntax
Date   Thu, 22 Jul 2004 12:16:16 -0400

Thanks to all who responded. Forward rather than backward slashes indeed solved my problem:

local files "owner00r owner99r owner93r"

. foreach file of local files {
2. clear
3. inputst d:/Data/CGSData/`file'.wb2
4. capture save d:/Data/CGSData/`file', replace
5. }

.

At 11:54 AM 7/22/2004, Nick Cox wrote:

The backward slash just before ` is the problem. See
[U] 21.3.10 and use forward slashes instead, even
under Windows.

Nick
[email protected]

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