BookmarkSubscribeRSS Feed
Nikon1234
Calcite | Level 5

Hi.

 

First time to post here. I need your help on suppressing the print out of proc logistic.

 

data ingots;
input Heat Soak r n @@;
datalines;
7 1.0 0 10 14 1.0 0 31 27 1.0 1 56 51 1.0 3 13
7 1.7 0 17 14 1.7 0 43 27 1.7 4 44 51 1.7 0 1
7 2.2 0 7 14 2.2 2 33 27 2.2 0 21 51 2.2 0 1
7 2.8 0 12 14 2.8 0 31 27 2.8 1 22 51 4.0 0 1
7 4.0 0 9 14 4.0 0 19 27 4.0 1 16
;

run;

 

ods graphics on;
proc logistic data=ingots;
model r/n = Heat | Soak;
oddsratio Heat / at(Soak=1 2 3 4);

 

ods output ParamterEstimates=my_est;
run;

 

proc compare data=ingots c=ingots listall;

run;

 

 

Executing the above code, my lst file has the logistic model print out, as well as my final proc compare print out.

 

I only want the

1. ParamterEstimates=my_est data set

2. proc compare print out

 

so how to suppress the proc logistic model print out?

 

Thanks.

 

Dan 

 

2 REPLIES 2
ballardw
Super User

You can use ODS SELECT to list the items you want to have as output from a procedure.

StatDave
SAS Super FREQ

You can suppress all displayed output from any procedure by using the ODS EXCLUDE ALL; statement before the procedure. Be sure to turn the display of output back on afterwards with ODS SELECT ALL; . This still allows for the creating of output data sets using the ODS OUTPUT statement. For example,

 

ods exclude all;
proc logistic data=ingots;
model r/n = Heat | Soak;
oddsratio Heat / at(Soak=1 2 3 4);
ods output ParamterEstimates=my_est;
run;
ods select all;
 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 693 views
  • 3 likes
  • 3 in conversation