0

We can turn off/on the results by doing

ods noresults;
ods results;

However, if you are within PROC IML, and you write that, you are sent out of the procedure, and you have to repeat all again. How do avoid that, i.e. how to turn on/off the results without exiting PROC IML?

I added captures that show Proc IML running and then turned off when I do ODS RESULTS.

enter image description here enter image description here

  • 2
    The ODS statement is a global statement. It does not make procedures exit. Are you running your example in SAS Enterprise Guide? EG automatically appends a QUIT to every program, which causes interactive procedures to exit. The solution is to run your program in the SAS Windowing Envirnoment ("display manager") or some other non-EG envrionment. – Rick Mar 16 '14 at 12:01
  • No, I am using SAS Base – Bogdan Lataianu Mar 16 '14 at 12:29
  • @Rick I added pictures – Bogdan Lataianu Mar 16 '14 at 12:39
  • try using the `NOPRINTALL` or `NOPRINT` options in the `proc iml` statement – scott Mar 16 '14 at 18:14
  • 2
    I've never seen this before. It doesn't happen for me at SAS 9.3 or SAS 9.4 on Windows. Contact SAS Technical Support and give them details like your SAS version, OS, etc. – Rick Mar 16 '14 at 23:15
  • 2
    You also might clarify why you _want_ to do this. Even if there is some reason this is the case in your system (and I agree with Rick that it shouldn't), there may be a way to do what you want differently. – Joe Mar 17 '14 at 01:28

0 Answers0