I am trying to loop over mutiple csv files in stata but it keeps returning the _"filename.csv invalid name error.
There are 3 files in the test-italy folder: burgiodata.csv; montallegrodata.csv; riberadata.csv.
Code:
local files : dir "/Users/aartimalik/Dropbox/italy/test-italy" files "*.csv"
display `"`files'"'
foreach file of local `files' {
import delimited using "`file'", clear
}

Comment