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.
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.
Is there anything I need to add to run IML Studio?
Yes, read p 10-11 in the book. You can also follow these directions.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.