I have data(data1) in following format :
obs | A | B | C |...
1 | 10 | 20 | 40 |...
2 | 05 | 24 | 45 |...
3 | 67 | 45 | 152 |...
:
I want to pass each columns to call svd which is available in proc iml.
and also want to store values of call svd in another data for further use...
I have tried using ...
proc iml;
use data1;
read all;
call svd(U, D, V, A);
call svd(U, D1, V, B);
call svd(U, D2, V, C);
:
call symputx("result1", D);
call symputx("result2", D1);
call symputx("result3", D2);
:
quit;
%put &result1
&result2
&result3;
data data2;
array a{*} a1-aN;
a1=&result1;
a2=&result2;
a3=&result3;
:
run;
Can you help me to run this dynamically?