Try
capture save "d:\Data\CGSData\`file'", replace
instead of
capture save "d:\Data\CGSData\`file''", replace
Gabi
-----Original Message-----
From: Devra Golbe [mailto:[email protected]]
Sent: Thursday, July 22, 2004 11:22 AM
To: [email protected]
Subject: st: foreach syntax
hI,
I am trying to run a simple foreach loop, but my code is clearly not
being parsed correctly, because the code below results in a "file not
found" error, (as does the same code without the double quotes inside the
foreach loop.) I've looked at the programming section of the User guide,
but I can't find the source of my error, which is undoubtedly very
simple. Can someone point me in the right direction?
Thanks,
Devra
****
local files "owner00r owner99r owner93r"
foreach file of local files {
clear
inputst "d:\Data\CGSData\`file'.wb2"
capture save "d:\Data\CGSData\`file''", replace
}
*****
_