Hello friends,
I’m not that used with SAS IML syntax and I’m trying to do something that seems to be very simple: creating matrices dynamically into a Do Loop.
What I’m trying to do is using the iterator number as part of the matrix names (because I will create a bunch of matrices, as I said, dynamically) but I just can’t figure out how.
Here is a simple example of how it should be:
PROC IML;
DO X = 1 TO 10;
MAT_&X. = J(10, 20, 1); /*or something like that…*/
END;
QUIT;
In other words, I just would like to concatenate “MAT_” with the iteration number to name the matrix, but I’m failing miserably…
Can anyone help me with this issue, please?
Note: I'm using the IML languague into SAS Guide scripts.