How to Suppress Survival Tables

Accepted Solution Solved
Reply
Contributor
Posts: 28
Accepted Solution

How to Suppress Survival Tables

I am running the following code and I have the output I am looking for (Testing Homogeneity of Survival Curves for Days_Open over Strata), and also 5 different survival output datasets. How can I suppress the production of these tables?

 

proc lifetest data= work.Random_Sample plots=(s) notable ALPHA=0.05;
time Days*paid;
strata type;
run ;

 

Thanks.


Accepted Solutions
Solution
‎08-08-2017 02:06 PM
Super User
Posts: 11,343

Re: How to Suppress Survival Tables

Place an ODS EXCLUDE <tablenames go here>; immediately before the Proc statement or within the proc code.

 

You can find the names of tables either looking in the documentation for the procedure or using

ODS TRACE on;

<your procedure code>

ODS trace off;

there will be a listing of the tables generated in the log that you can then add to an ODS Exclude or Select as needed.

View solution in original post


All Replies
Solution
‎08-08-2017 02:06 PM
Super User
Posts: 11,343

Re: How to Suppress Survival Tables

Place an ODS EXCLUDE <tablenames go here>; immediately before the Proc statement or within the proc code.

 

You can find the names of tables either looking in the documentation for the procedure or using

ODS TRACE on;

<your procedure code>

ODS trace off;

there will be a listing of the tables generated in the log that you can then add to an ODS Exclude or Select as needed.

Trusted Advisor
Posts: 1,909

Re: How to Suppress Survival Tables

ods _all_ close;
Contributor
Posts: 28

Re: How to Suppress Survival Tables

Posted in reply to PaigeMiller
Hi PaigeMiller,

Thanks for the code. It actually blocking my other graphs from coming and the tables are still there. Which code should I use to remove the code from above that you provided. It appears in all of my graph codes, and I need these graphs to show actually.
Thanks.
SAS Super FREQ
Posts: 3,752

Re: How to Suppress Survival Tables

Use ballardw's method: ODS EXCLUDE ALL;

For reasons why this method is preferable to closing ODS destinations, see

http://blogs.sas.com/content/iml/2015/05/28/five-reasons-ods-exclude.html

 

 

Contributor
Posts: 28

Re: How to Suppress Survival Tables

Thanks. I did, but I am still facing the issue of
ods _all_ close;
even I am not using it. Any idea on how to turn this off, please?

Thanks.
SAS Super FREQ
Posts: 3,752

Re: How to Suppress Survival Tables

The simplest solution is to exit SAS and restart.  If for some reason you don't want to do that, then reopen the destination that you want. For example:

ODS HTML;

or

ODS RTF;

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 6 replies
  • 202 views
  • 2 likes
  • 4 in conversation