BookmarkSubscribeRSS Feed
Alex90
Calcite | Level 5

Hi Rick

I have a question regarding printing in do loop in proc iml . This is my programm :

proc iml;

do t=1 to 5;

a=t*2;

print a;

end;

quit;

The problem i have encountered is when i run the above program i get 5 different values of a , but what i actually want is to have all those 5 values in one vector . I don't know how to do that in iml .

Waiting for your response

Regards

Alex

1 REPLY 1
Reeza
Super User

http://support.sas.com/publishing/pubcat/chaps/63119.pdf

Docs are always useful.

t isn't defined as a vector so expecting a vector as an answer doesn't seem logical to me.

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

Register now!

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