Code:
clear* tempfile building
save `building', emptyok  
local filenames: dir "." files "*.csv"  
foreach f of local filenames {
insheet using `"`f'"', comma
gen source_file = `"`f'"'
append using `building'
save `"`building'"', replace
}Code:
you must start with an empty dataset r(18);
0 Response to [HELP] Appending several CSV files together
Post a Comment