Desktop productivity for business analysts and programmers

How to control the Output in SAS result window in SAS EG

Reply
Contributor
Posts: 56

How to control the Output in SAS result window in SAS EG

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.

Attachment
Community Manager
Posts: 2,695

Re: How to control the Output in SAS result window in SAS EG

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

Contributor
Posts: 56

Re: How to control the Output in SAS result window in SAS EG

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 .

Community Manager
Posts: 2,695

Re: How to control the Output in SAS result window in SAS EG

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

Ask a Question
Discussion stats
  • 3 replies
  • 591 views
  • 0 likes
  • 2 in conversation