Hi statalist community!
I am stuck with this problem for more than two weeks and have studied the web meanwhile. I have multiple stata files (all in R2 folder) I need to make changes on and merge with a master file. At fist step my code to make changes, does not work:
I'd appreciate if you could take a look at my code. I think I need to read more about local directory macros.
regards,
I am stuck with this problem for more than two weeks and have studied the web meanwhile. I have multiple stata files (all in R2 folder) I need to make changes on and merge with a master file. At fist step my code to make changes, does not work:
Code:
local dir "C:\Users\Paper 2\Data\cdrdist\R2" local data: dir "`dir'" files "*.dta" local data `data' foreach file of local data { drop _all use "`dir'/`data'", clear duplicates drop FQmetainstanceID,force seva,replace }
regards,
Comment