Hello,

I'm trying to merge 3 tempfiles named: part1, part2, part3. I used the following code:

use `part1', clear
foreach i of numlist 2/3 {
merge m:1 state year using `part`i''
}

However, it's only merging part1 and part2, not part3. What am i doing wrong?