SAS/IML Software and Matrix Computations

Statistical programming, matrix languages, and more
BookmarkSubscribeRSS Feed
tbanh
Fluorite | Level 6

Hi all,

 

I'm reading Rick's book on Statistical Programming using IML. I've gotten to the part about using IML Studio. However, I have trouble "accessing" it. I have checked the documentation and I'm licensed to use SAS IML. I'm using SAS 9.4. That should suffice, correct? Below is some code from the book I have tried to use in the editor:

 

proc iml;
call randseed(12345);
x = j(100,1);
e = j(100,1);
call randgen(x, "Uniform");
call randgen(e, "Normal");

beta = {2,3};
d = j(100,1,1) || x;
y = d*beta + e;

create MyData var {"x" "y"};
append;
close MyData;

submit;
proc glm data = MyData;
	model y = x;
	ods output ParameterEstimates = PE;
run;
endsubmit;
quit;

 

However, the submit and endsubmit statements are red, which I assume means those are not supported?

 

Thanks for any help.

3 REPLIES 3
Rick_SAS
SAS Super FREQ

No, red means that those statements are not recognized by the program editor's syntax coloration. I believe that those statemnts were added back in SAS 9.22, which shipped in 2010. If you have SAS 9.3 or later, those functions should work fine, even if they are colored red. 

tbanh
Fluorite | Level 6

Is there anything I need to add to run IML Studio?

Rick_SAS
SAS Super FREQ

Yes, read p 10-11 in the book. You can also follow these directions.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

From The DO Loop
Want more? Visit our blog for more articles like these.
Discussion stats
  • 3 replies
  • 1227 views
  • 0 likes
  • 2 in conversation