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)?
ODS. Take a look at: http://www.nesug.org/proceedings/nesug07/po/po22.pdf
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;
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.
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.
I've never run logistic. Is it possible that it needs a quit statement at the end?
no, it doesn't.
It must the problem with ODS on my sas platform.
Thank you very much for your kindness.
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 :--)
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.