|
Is there a way to pass a scalar matrix into a macro variable
and use it in the same IML session as a character number ??
(In other words, evaluate a matrix and put the result into a character
macro.)
e.g.
proc iml; ...
x = {1 2, 2 1};
x1 = {5 6, 7 8};
x2 = {9 10, 1 2};
(pseudo code)
%let y = x[1,1]; * put a scalar matrix (value unknown) into a macro var;
z = x + x&y; * resolve the macro as a character;
* (want z = x + x1 );
print z;
quit;
I'd appreciate any hint.
TIA.
-----------------------------------------------------------
Sung-Il Cho 617-432-1147 (voice) 432-0219 (FAX)
Dept. of Env Health (Occupational Health Program) &
Dept. of Epidemiology, Harvard School of Public Health
665 Huntington Av., Boston MA 02115
|