BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
tianerhu
Pyrite | Level 9
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;

1 ACCEPTED SOLUTION

Accepted Solutions
japelin
Rhodochrosite | Level 12

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';

View solution in original post

2 REPLIES 2
japelin
Rhodochrosite | Level 12

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';
tianerhu
Pyrite | Level 9

Thank you .

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 798 views
  • 1 like
  • 2 in conversation