I have a problem. When I run the following program:
#delimit;
foreach i of numlist 3(1)6 {
local j : di char(`i'+96)
global `j'indvars "pid `j'hid";
}
#delimit cr;
I got an error code r(198) with a comment saying:
"program error: code follows on the same line as open brace"
I am working on the BHPS and I hope that I can draw the same variables out from
the various waves using globals combined with a loop. Am I doing anything wrong
or is global not allowed in a loop?