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.
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
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
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 .
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
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.