BookmarkSubscribeRSS Feed
littlestone
Fluorite | Level 6

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)?

7 REPLIES 7
littlestone
Fluorite | Level 6

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;

art297
Opal | Level 21

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.

littlestone
Fluorite | Level 6

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.

art297
Opal | Level 21

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

littlestone
Fluorite | Level 6

no, it doesn't.

It must the problem with ODS on my sas platform.

Thank you very much for your kindness.

littlestone
Fluorite | Level 6

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 :--)

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 7 replies
  • 775 views
  • 3 likes
  • 2 in conversation