ods html file='C:\Users\liaodong\Documents\My SAS Files\red big book\chapter 19\BB.html';
title "Listing of TEST_SCORES";
proc print data=learn.test_scores;
title2 "Sample of HTML Output - all defaults";
id ID;
var Score1-Score3;
run;
ods html close;
information from log:
678 *libname learn 'C:\Users\liaodong\Documents\My SAS Files\red big book\data in big red SAS';
679 ods html file='C:\Users\liaodong\Documents\My SAS Files\red big book\chapter 19\BB.html';
NOTE: Writing HTML Body file: C:\Users\liaodong\Documents\My SAS Files\red big book\chapter
19\BB.html
ERROR: A component of C:\Users\liaodong\AppData\Local\Temp\SAS Temporary
Files\_TD13804_LIAODONGHUANG_\C:\Users\liaodong\Documents\My SAS Files\red big book\chapter
19\BB.html is not a directory.
ERROR: No body file. HTML output will not be created.
680 title "Listing of TEST_SCORES";
681 proc print data=learn.test_scores;
682 title2 "Sample of HTML Output - all defaults";
683 id ID;
684 var Score1-Score3;
685 run;
WARNING: No output destinations active.
NOTE: There were 3 observations read from the data set LEARN.TEST_SCORES.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
686 /*title "Descriptive Statistics";
687 proc means data=learn.test_scores n mean min max;
688 var Score1-Score3;
689 run;*/
690 ods html close;
I think it's a bug in ods html, but it doesn't work correctly if I specify the full path in file=.
If you use path and file and specify the following, it should work.
ods html path='C:\Users\liaodong\Documents\My SAS Files\red big book\chapter 19'
file='BB.html';
I think it's a bug in ods html, but it doesn't work correctly if I specify the full path in file=.
If you use path and file and specify the following, it should work.
ods html path='C:\Users\liaodong\Documents\My SAS Files\red big book\chapter 19'
file='BB.html';
Thank you .
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.