I have a set of variables named "ratio_##########_co_###" (where # are numbers).
My problem is when applying loops as:
Code:
summarize ratio_`k'_co_`j'
Code:
summarize ratio_0101100010_co_3
Code:
summarize ratio_0101100010_co_38
So the summarize is bringing me the same values for both variables despite "ratio_0101100010_co_3" does not exist.
It is like the system is interpreting the variable having the end 3 as the first digit and analyzing an existing variable with other digits but beginning with the 3.
Hope I am clear enough.
Thanks!
0 Response to Problem with variables names inside loops
Post a Comment