Hi
Stata reports "...file not found" when I try to do the following. I have a few CSV files that I want to import, do a few things and then reshape and save as Stata dta files. Here is the most basic version of what I am doing.
Stata has an issue with the import line. I tried putting in an actual name instead of `i' and Stata has no problem with the save line. I cannot figure out why. Please advice.
Stata reports "...file not found" when I try to do the following. I have a few CSV files that I want to import, do a few things and then reshape and save as Stata dta files. Here is the most basic version of what I am doing.
Code:
foreach i in "Dep" "Emp" { import delimited "Q:\DATA\`i'.csv", clear **converting into panel format reshape long a, i(id) j(year) rename a `i' save "Q:\DATA\`i'.dta", replace }
Comment