Statistical programming, matrix languages, and more

Trouble with IML Studio/IMLPlus

Reply
Contributor
Posts: 43

Trouble with IML Studio/IMLPlus

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.

SAS Super FREQ
Posts: 3,633

Re: Trouble with IML Studio/IMLPlus

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. 

Contributor
Posts: 43

Re: Trouble with IML Studio/IMLPlus

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

SAS Super FREQ
Posts: 3,633

Re: Trouble with IML Studio/IMLPlus

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

Ask a Question
Discussion stats
  • 3 replies
  • 292 views
  • 0 likes
  • 2 in conversation