Dear all,
I have 72 .dta files with average size of 200 MB (overall 15 GB). They are all stored in a subdirectory named "segment1". I want to append them all into a single master file.
Currently, I am using this
The code works fine, however:
Any help would be really appreciated.
Best,
Edoardo
PS: 1) OS: Windows Server 2019 Standard; 2) Stata: SE 16.0
I have 72 .dta files with average size of 200 MB (overall 15 GB). They are all stored in a subdirectory named "segment1". I want to append them all into a single master file.
Currently, I am using this
Code:
local file2append: dir "segment1" files "*.dta" foreach file of local file2append { preserve use "segment1/`file'", clear save temporary, replace restore append using temporary, force }
- It is incredibly slow.
- Stata keeps "not responding", even if it seems it is still performing the task.
Any help would be really appreciated.
Best,
Edoardo
PS: 1) OS: Windows Server 2019 Standard; 2) Stata: SE 16.0
Comment