BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
whs278
Quartz | Level 8

I noticed that if I run the following code in SAS EG....

 

ODS _ALL_ CLOSE;
ODS LISTING;

 

I am able to shut down the ODS HTML output and keep the ODS LISTING output.  However, the next time I run something interactively in SAS EG, it automatically goes back to the default results output.  Is there a way to use code in SAS EG to close ODS results for a given session until I explicitly reopen them?

 

Thank you very much.

 

-Bill

 

P.S. I know how to change the Results settings by selecting Tools / Options in the menu bar, but I was wondering if there was a way to explicitly control outputs in code.  

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
EG treats code submission more like batch and adds its own wrapper code which resets certain things so the short answer is no.

You can try ODS NORESULTS; but I suspect you'll see the same behaviour there.

View solution in original post

1 REPLY 1
Reeza
Super User
EG treats code submission more like batch and adds its own wrapper code which resets certain things so the short answer is no.

You can try ODS NORESULTS; but I suspect you'll see the same behaviour there.

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch Now →
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1102 views
  • 1 like
  • 2 in conversation