A folder contains a lot of csv files with similar rows and columns. Without having to list all their names, how can I import them all into a single dta file? Many thanks.
-
Login or Register
- Log in with
help macro##macro_fcn
local appendlist = "" local i = 0 foreach f of local YourCSVList { import delimited `f' .... etc local ++i tempfile temp`i' save `temp`i'' local appendlist "`appendlist' `temp`i''" } append using `appendlist'
Comment