I have this macro in the beginning of my program:
%macro m1;
%do i=1 %to 10;
%let row&i=&i;
%end;
%mend;
%m1;
With %put &&row&i inside the macro I have checked that the values of row1 to row10 are from 1 to 10.
In my main program I have an expression
r&&row&k.col(n)=p; (a dot between k and c)
&k is a macro variable ranging from 1 to 10. n is a number from 1 to 5.
I have arrays r1col(5), r2col(5), ... , r10col(5) declared.
I expected to get r1col(n)=p, r2col(n)=p, ... and so on.
But I get the error message: Apparent symbolic reference ROW1COL not resolved.
The same for ROW2COL, and so on.
What have I done wrong?