Hello Listers!

I am trying to run multiple block regressions. I have put a set of explanatory variables in blocks using a global macro. My syntax looks like this
Code:
gl x1 x2 x3 x4 x5
gl y y1 y2 y3 y4 y5 y6 y7 y8 y9 y10
Next, I run a foreach loop to regress two separate equations
Code:
foreach b in “$x” “$y” {
reg z ‘b’
}
The loop runs the first block fine, but fails on the second block with the error -x1 ambiguous abbreviation- with error number r(111). Help would be much appreciated.