Help using Base SAS procedures

how to export statistics results to an external file

Reply
Frequent Contributor
Posts: 89

how to export statistics results to an external file

I am doing some regression. All statistics result was in ouput window. Is it possible to export all those statistics results to an external file (word, html, or plain text)?

PROC Star
Posts: 7,363

how to export statistics results to an external file

Frequent Contributor
Posts: 89

how to export statistics results to an external file

thank you. I actually tried to read that paper but it is kind of too complicated for me (i never used ODS before).

Now I just want to output one table, but the code seems to run forever (I waited a long time without any result). where am i wrong ? here is my code:

ODS OUTPUT  ASSOCIATION = DATA_ASSOCIATION;

proc logistic data=new descending;

..............

..............

run;

ODS OUTPUT CLOSE;

ODS HTML FILE='C:\Exercise\ASSOCIATION.HTML';

proc print data = data_association;

run;

ODS HTML CLOSE;

PROC Star
Posts: 7,363

how to export statistics results to an external file

Did the proc logistic run within the expected time?  You could have simply stopped there and run your proc print without the additional ods html stuff.

Frequent Contributor
Posts: 89

how to export statistics results to an external file

the logistic regression runs ok.

weird thing is: only after I terminate sas, i got the html file; i tried several times. it might be something wrong with my sas.

anyway, thank you very much.

PROC Star
Posts: 7,363

how to export statistics results to an external file

I've never run logistic.  Is it possible that it needs a quit statement at the end?

Frequent Contributor
Posts: 89

how to export statistics results to an external file

no, it doesn't.

It must the problem with ODS on my sas platform.

Thank you very much for your kindness.

Frequent Contributor
Posts: 89

how to export statistics results to an external file

in case some one get interested:

I tested again: the code is working. I waited about 10 minutes before everything is done. when i looked at log, i got following:

110  ODS HTML FILE='C:\Exercise\ASSOCIATION.HTML';

NOTE: Writing HTML Body file: C:\Exercise\ASSOCIATION.HTML

111  PROC PRINT DATA = DATA_ASSOCIATION;

112  RUN;

NOTE: There were 4 observations read from the data set WORK.DATA_ASSOCIATION.

NOTE: PROCEDURE PRINT used (Total process time):

      real time           0.14 seconds

      cpu time            0.01 seconds

113  ODS HTML CLOSE;

I don't know why it takes 10 minutes; maybe my computer is too old :--)

Ask a Question
Discussion stats
  • 7 replies
  • 163 views
  • 3 likes
  • 2 in conversation