I'm trying to importing several files from a folder using this code:
cd "\\xyz"
local aaa: dir . files "*.csv"
foreach file of local aaa{
preserve
insheet using `"`file'"'
save temp, replace
restore
append using temp, force
}
I get af "fil not found" error?
But when import separately using this code there is no error:
import delimited "\\xyz\filname.csv"
What could the problem be?
Kind regards
Torben
Related Posts with File not found error
Problem grouping hierarchical data into subset of the dataHello I am new to Stata and I am struggling to find the best command /code to the below data. I am …
Recode helpHi, I am trying to get three variables only i.e. England, Wales and Scotland. I want to recode 'n…
Test of equality for sibling correlations across groups mixedDear all, I am estimating sibling correlation using Stata's mixed command via REML for different gr…
Regression with Categorical Dummy VariableDear all, I would like to conduct the following regression: y = a + x1*(1-D) + x2*D + x3*(1-D) + x…
Problem with fweight and bar graphsThis is probably an extremely elementary question and I am so sorry in advance. I have a dataset of …
Subscribe to:
Post Comments (Atom)
0 Response to File not found error
Post a Comment