Creating an ods output for autoreg procedure

Reply
Occasional Contributor
Posts: 6

Creating an ods output for autoreg procedure


Good afternoon

I have tried to create a file the includes some of the printed output of autoreg procedure but unfortunately this file was not created at all.

Any suggestion or idea?

The following is my code, sum_stat file shoud have been created :

ods trace on;

ods  listing close;

ods output FitSummary =sum_stat;

ods exclude all;

proc autoreg data=results  plots=(acf iacf pacf) outest=models ;

by rep sch_exp alpha beta;

model htresidual= /dwprob noprint;

output out=fresults1 p=fhtpredicted1 r=fhtresiduals1;

run;quit;

ods trace off;

ods listing;

ods output close;

Thanks

Super User
Posts: 19,167

Re: Creating an ods output for autoreg procedure

What does the log say?

Occasional Contributor
Posts: 6

Re: Creating an ods output for autoreg procedure


It says nothing everything was executed perfectly.

Super User
Posts: 11,134

Re: Creating an ods output for autoreg procedure

Two things I would try, assuming you are trying to create a data set sum_stat;

Move the ODS OUTPUT to between the PROC and the RUN statement;

Get rid of the ODS Exclude all;

Occasional Contributor
Posts: 6

Re: Creating an ods output for autoreg procedure

I tried both ways but the log gave me the following warning statement

WARNING: Output 'ParameterEstimates' was not created.  Make sure that the output object name,

         label, or path is spelled correctly.  Also, verify that the appropriate procedure

         options are used to produce the requested output object.  For example, verify that the

         NOPRINT option is not used.

I have to put noprint option otherwise printed the output of 12000 models will interrupt the running process.

Super User
Posts: 19,167

Re: Creating an ods output for autoreg procedure

Closing the listing should take care of the output. Why does the log mention parameter estimates, that wasn't in your code?

Does the following work?

ods  listing close;

ods html close;

ods select FitSummary;

ods output FitSummary =sum_stat;

proc autoreg data=results  plots=(acf iacf pacf) outest=models ;

by rep sch_exp alpha beta;

model htresidual= /dwprob;

output out=fresults1 p=fhtpredicted1 r=fhtresiduals1;

run;quit;

ods listing;

ods html;

Occasional Contributor
Posts: 6

Re: Creating an ods output for autoreg procedure


because I was trying all the ODS Tables Produced in PROC AUTOREG and copied the warning message for one of them, sorry about that.

I will try your code.

Appreciate your help.

Thanks.

Occasional Contributor
Posts: 6

Re: Creating an ods output for autoreg procedure


It worked the way you did it but I had to Move the ODS OUTPUT to between the PROC and the RUN statement as ballardw suggested.

Thank you very much for you both.

Have a great day.

Ask a Question
Discussion stats
  • 7 replies
  • 476 views
  • 0 likes
  • 3 in conversation