Dear all,
I'm trying to work on two loops over 200 files:
1- First loop open the csv and save as dta keeping as file name the same one which is already save as csv
2- Appending all dta files
1-First loop I've tried to do the following:
2-Second loop:
Here I should append the dta files contained in the new folder
Would you be so kind to give me any tips?
Many thanks in advance
I'm trying to work on two loops over 200 files:
1- First loop open the csv and save as dta keeping as file name the same one which is already save as csv
2- Appending all dta files
1-First loop I've tried to do the following:
Code:
local filenames: dir . files "Path folder where I stored all csv files" foreach file of local filenames { import delimited "`file'" //Here I should write the line of codes to save them as dta with same csv filename in a new folder path }
Here I should append the dta files contained in the new folder
Would you be so kind to give me any tips?
Many thanks in advance
Comment