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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 2 replies
  • 433 views
  • 1 like
  • 2 in conversation