Hi everyone,
I'm using xls2dta to import multiple excel files and to append them into one dta file . The code I am using is:
The code is working well, but it's taking very long to perform. I've only tried it on a subset of my data so far (120 files, approx. 250k observations each, files are 30-50 KB in size), which already took more than an hour. My final dataset will be from 1400 excel files with approx. 250k observations each. I'm worried that it will take all day to import...
Do you have any suggestions on how to speed things up? Some ideas I have would be to drop the firstrow command & then to manually filter out all of the first excel rows, or to manually place all excel files into one folder to avoid the recursive command. Would that help?
Thank you in advance for your advice!
I'm using xls2dta to import multiple excel files and to append them into one dta file . The code I am using is:
Code:
xls2dta , save(C:\Users\user\Desktop\test) recursive : import excel C:\Users\user\Desktop\test, firstrow xls2dta , save( C:\Users\user\Desktop\test\test.dta) : append
Do you have any suggestions on how to speed things up? Some ideas I have would be to drop the firstrow command & then to manually filter out all of the first excel rows, or to manually place all excel files into one folder to avoid the recursive command. Would that help?
Thank you in advance for your advice!