The extended macro function dir will make Stata run whatever files it finds in a given directory. You don't have to enumerate those files. Sometimes that is useful. Say you start out with a simple idea, like running an OLS regression. And say your dependent variable and some of the regressors are in one file, [...]