Programming the statistical procedures from SAS

Suppressing output from Results window

Accepted Solution Solved
Reply
Contributor
Posts: 22
Accepted Solution

Suppressing output from Results window

[ Edited ]

I'm running a regression procedure 30,000 times. By using the following I've been able to suppress all logs, listing, & HTML: 

 

ods html close ;
ods listing close; 
options nosource nonotes; 

Here's the regression equation code:

 

 proc reg data = hr_reg ; 
model hr = timepoint;
title "Regression of hr on time";
 ods output ParameterEstimates=beta FitStatistics = rsquare; 
run; 
quit;

 

 

Even though the output is suppressed, the Results window continues to accumulate "beta" & "rsquare" SAS data sets. Is there any way to prevent that from occurring? Thanks! Andrew

Andrew A. Kramer, PhD
President
Prescient Healthcare Consulting

Accepted Solutions
Solution
‎10-31-2016 04:05 PM
SAS Super FREQ
Posts: 3,306

Re: Suppressing output from Results window

Follow the instructions in the article "Turn off ODS when running simulations in SAS."

 

And since I don't see a BY statement in your code, I also suggest that you read "Simulation in SAS: The slow way or the BY way"

 

If you intend to do a lot of simulation in SAS, you might want to read the paper "Ten Tips for Simulating Data with SAS" (Wicklin, 2015)

View solution in original post


All Replies
Solution
‎10-31-2016 04:05 PM
SAS Super FREQ
Posts: 3,306

Re: Suppressing output from Results window

Follow the instructions in the article "Turn off ODS when running simulations in SAS."

 

And since I don't see a BY statement in your code, I also suggest that you read "Simulation in SAS: The slow way or the BY way"

 

If you intend to do a lot of simulation in SAS, you might want to read the paper "Ten Tips for Simulating Data with SAS" (Wicklin, 2015)

Contributor
Posts: 22

Re: Suppressing output from Results window

Rick, Thanks! That did the trick. I'll try by-processing rather than a macro loop. BTW: This isn't a simulation but actual data. Best, Andrew
Andrew A. Kramer, PhD
President
Prescient Healthcare Consulting
☑ This topic is SOLVED.

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

Discussion stats
  • 2 replies
  • 429 views
  • 0 likes
  • 2 in conversation