09-08-2011 08:59 PM
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)?
09-08-2011 10:05 PM
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;
ODS OUTPUT CLOSE;
ODS HTML FILE='C:\Exercise\ASSOCIATION.HTML';
proc print data = data_association;
ODS HTML CLOSE;
09-08-2011 10:30 PM
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.
09-08-2011 10:41 PM
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.
09-08-2011 11:38 PM
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;
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 :--)