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 .
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 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.