Sometimes datasets come in fragments with a common -ID- variable to merge them by. Merging datasets one by one is a bit tedious and prone to error (e.g. never knowing when to choose 1:m over m:m and so on). Previously I asked a question about appending all datasets in a directory and got some really attractive solutions (link below). So I'm wondering if this is doable for merging as well. Please share your insights.

Thank you.

https://www.statalist.org/forums/for...s-in-directory