I am using -precombine- to check a set of files before appending them, and getting an error that I can't figure out how to troubleshoot. (I am using version 17.)
I get this error: after merge, not all observations matched (merged result left in memory). In the "Reports relevant to the combining of the following datasets" output prior to this error, it shows that they all have the same number of variables. There are different numbers of observations, but that shouldn't be an issue since I'm not actually trying to merge the data. There is no data in memory after this error and I don't know how I can access the "merged result left in memory" to try to figure out what is going on. I have manually checked each one of the dta files and cannot figure out why this is happening. I can append the files without issue and get exactly what I expect. Even though I am only appending a small number of files (~10) in this case, I want to be able to use -precombine- as a best practice. I ran -precombine- successfully on an earlier version of these files and never got an error. How can I trouble shoot this? What is causing the error?
Code:
local dta_path "C:/Users/.../Data/Working Data/Academic/Reading" local files: dir "`dta_path'" files "final*.dta" cd `"`dta_path'"' precombine `files', clear uniquevars describe(type)
Comment