Hi all,

I have 135 .dta files on a folder each for one month from 2004m1 to 2018m12. The files are called Emp200401.dta, Emp200402.dta ...

I would like to append all of them into one master dataset. I tried doing this using:

Code:
local fnames: dir "U:\Data\EmpCounts" files "*"
foreach file of local fnames {
append using `r(files)', all
}
But I recieve the following message:

Code:
invalid file specification
r(198);
Any advice on how to append the file into one dataset would be greatly appreciated.