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

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.

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

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

6 REPLIES 6
ballardw
Super User

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.

PaigeMiller
Diamond | Level 26
ods _all_ close;
--
Paige Miller
altijani
Quartz | Level 8
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.
Rick_SAS
SAS Super FREQ

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

 

 

altijani
Quartz | Level 8
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.
Rick_SAS
SAS Super FREQ

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;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register 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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 5992 views
  • 3 likes
  • 4 in conversation