Help using Base SAS procedures

Saving parameters without printing

Reply
Frequent Contributor
Posts: 107

Saving parameters without printing

Dear all,

 

I would like to save results of the following regression, but without printing the results. How would I adjust my code? If I put in NOPRINT, it won't save my output.

 

proc glm data=claims;
class year(ref='2010' ) age_gr (ref='0' );
model indavgcost= year|avgcontract/ solution;
TITLE "ALL HOSPITALS-indavgcost";
ods output ParameterEstimates=work.t0(keep=parameter estimate stderr probt) ;
run;
Super User
Posts: 10,209

Re: Saving parameters without printing

Close all ODS destinations before opening the output destination.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
SAS Super FREQ
Posts: 4,237

Re: Saving parameters without printing

Put

ODS EXCLUDE ALL;

before the PROC GLM call and put 

ODS EXCLUDE NONE;

after the call.

 

Using ODS EXCLUDE is better than closing ODS destinations.

Ask a Question
Discussion stats
  • 2 replies
  • 152 views
  • 0 likes
  • 3 in conversation