I have been running a loop for each out of 5 years.
Code:
clear all cd "\\registry\2017" save appended_2017, emptyok local filelist: dir . files "*.dta" foreach f of local filelist { use `f', clear append using appended_2017.dta save appended_2017.dta, replace }
All files are sitting in the corresponding year folder.
Error:
no variables defined
r(111);
r(111);
Thank you.
0 Response to LOOP ERROR no observations defined
Post a Comment