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

I have code where ods tagsets are used to create multitab .xls file . once code is executed in SAS EG I can see the outputs in SAS result window .

I want to restrict the outputs which will be displayed in the SAS result window; for that purpose I used ODS _all_close . but after using this I could not print any output in SAS result window .Only part which was before this could be seen in the SAS result window . I think it closed all output destination .

Can any one tell me how to open all destination or some thing just opposite of "ODS _all_close" . Does SAS has some thing ODS _all_ Open kind of feature ? Or anyother way to deal with problem.

I have tried to restrict using  ods listing close , ods result off  etc but it did not work.

I could manage in listing output but not in SAS result window.

see the attached dummy code which reproduces it.

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

EG generates the ODS destinations with an ID= attribute, which you can use to your advantage to toggle the flow of output.

Supposing that you are using the default SAS Report output destination, you can "turn off" the output to it with:

ODS tagsets.sasreport13(ID=EGSR) select NONE;

When you want it on again, use:

ODS tagsets.sasreport13(ID=EGSR) select ALL;

These statements would be slightly different for the HTML destination.  Example:

ODS HTML(ID=EGHTML) select NONE;

Chris

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

View solution in original post

3 REPLIES 3
ChrisHemedinger
Community Manager

You can control how EG generates ODS statements in the Program properties.  See this blog post for details:

Take control of ODS results in SAS Enterprise Guide - The SAS Dummy

Chris

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
ucvikas
Obsidian | Level 7

Chris . Thanks for the link but I did not find what I am looking for. Still puzzled with use of ods _all_ close together with ods tagsets .

ChrisHemedinger
Community Manager

EG generates the ODS destinations with an ID= attribute, which you can use to your advantage to toggle the flow of output.

Supposing that you are using the default SAS Report output destination, you can "turn off" the output to it with:

ODS tagsets.sasreport13(ID=EGSR) select NONE;

When you want it on again, use:

ODS tagsets.sasreport13(ID=EGSR) select ALL;

These statements would be slightly different for the HTML destination.  Example:

ODS HTML(ID=EGHTML) select NONE;

Chris

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 3 replies
  • 4469 views
  • 1 like
  • 2 in conversation