Hi all,

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'
The problem is that summarize interprets, for example:
Code:
summarize ratio_0101100010_co_3
Which does not exist in my dataset, as if it were:
Code:
summarize ratio_0101100010_co_38
Which exists in my dataset.
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!