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 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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