Hi there,
I managed to run the two bits of code as separate calls to proc iml. I was able to get real time and cpu time of the SAS/IML Results, but not R Results. This is what I have on the log so far when I run the whole code.
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
75
76 proc options option=RLANG;
77 run;
SAS (r) Proprietary Software Release V.03.04 TS1M0
RLANG Enables SAS to execute R language statements.
NOTE: PROCEDURE OPTIONS used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
78
79 proc iml;
NOTE: IML Ready
80 /* Comparison of matrix operations in IML and R */
81 print "---------- SAS/IML Results -----------------";
82 x = 1:3;
82 ! /* vector of sequence 1,2,3 */
83 m = {1 2 3, 4 5 6, 7 8 9};
83 ! /* 3 x 3 matrix */
84 q = m * t(x);
84 ! /* matrix multiplication */
85 print q;
86 quit;
NOTE: Exiting IML.
NOTE: The PROCEDURE IML printed page 1.
NOTE: PROCEDURE IML used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
87
88 proc iml;
NOTE: IML Ready
89 print "------------- R Results --------------------";
90 submit / R;
91 rx <- matrix( 1:3, nrow=1); # vector of sequence 1,2,3
92 rm <- matrix( 1:9, nrow=3, byrow=TRUE); # 3 x 3 matrix
93 rq <- rm %*% t(rx); # matrix multiplication
94 print(rq);
95 endsubmit;
As you can tell, the SAS Studio is just running the code for R Results without any error nor completion and it has been like this for more than an hour. This is how it looks like currently after I submitted the two bits of code on SAS Studio V. It just keeps running.
... View more