I have a folder containing some 70,000 systematically named files which I am going to merge into fewer files eventually. I start with running a simple loop using the capture confirm file construct to check which files do not exist but I always receive code 601 (not found) even for the files I can see that exist. Can anyone think of a reason why this happens?
foreach t in 17928 17956 17987 18017{
foreach f in 5560003468 5560004615 5560005331 {
capture confirm file "C:\Users\Nima\Desktop\Directors\Merged`t'-`f'"
dis _rc
use "C:\Users\Nima\Desktop\Directors\Merged`t'-`f'"
clear
}
}
Just to illustrate the problem, I have added a shortened version of the loop I am running above. All 12 files do exist above and Stata opens them one by one in the loop but first displays code 601.
Related Posts with Problem with capture confirm file
How to ignore non converging GARCH(1,1)Dear all, I am currently in the process of trying to replicate a paper by O'Brien & Folta: "Sun…
Logistic regression with an interaction term of two predictor variables? Do we can interpret non-significant coefficient?Hello, I am a bit curious about the interpretation of results given from: https://stats.idre.ucla.e…
Logistic regression with an interaction term of two predictor variables. It's correct to interpret non-significant coefficients?Hello, I am a bit curious about the interpretation of results given from: https://stats.idre.ucla.e…
Bonferroni Correction / False Discovery RateHi Statalisters, I have some questions about the bonferroni correction and False Discovery Rates. …
Omitted variableI am working with panel data and xtreg with fixed effects. 3 of my variables result in Omitted after…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with capture confirm file
Post a Comment