The SAS Output Delivery System and reporting techniques

ODS HTML error

Accepted Solution Solved
Reply
Contributor
Posts: 46
Accepted Solution

ODS HTML error

I am having errors with html formats. Here is the error message I see on my log:

"ERROR: A component of C:\Users\mehretu\AppData\Local\Temp\4\SAS Temporary
Files\_TD6816_SPAZIO_\H:\output\test.html is not a directory.
ERROR: No body file. HTML output will not be created.
"

What's confusing is I have zero problem with any other format...PDF,CSV,xlsx.

 

Any insight is appreciated.


Accepted Solutions
Solution
‎05-12-2018 07:30 PM
SAS Super FREQ
Posts: 9,431

Re: ODS HTML error

[ Edited ]

Hi:
My guess is that you had something like this:
ODS HTML file="H:\output\test.html" ... ;

or
ODS HTML body="H:\output\test.html" ...;

Try changing it to:
ODS HTML path="H:\output" file="test.html" ... ;

or
ODS HTML path="H:\output" body="test.html" ...;

Notice how your WORK location folder is being pre-pended to your H: drive location. This is typically what happens when your default PATH is set to one thing and then the FILE= value is added to that default location.

Cynthia

View solution in original post


All Replies
Super User
Posts: 4,023

Re: ODS HTML error

Your HTML file test.html is being written to an invalid directory. Post your code so we can see what is happening more clearly.

Solution
‎05-12-2018 07:30 PM
SAS Super FREQ
Posts: 9,431

Re: ODS HTML error

[ Edited ]

Hi:
My guess is that you had something like this:
ODS HTML file="H:\output\test.html" ... ;

or
ODS HTML body="H:\output\test.html" ...;

Try changing it to:
ODS HTML path="H:\output" file="test.html" ... ;

or
ODS HTML path="H:\output" body="test.html" ...;

Notice how your WORK location folder is being pre-pended to your H: drive location. This is typically what happens when your default PATH is set to one thing and then the FILE= value is added to that default location.

Cynthia

Contributor
Posts: 46

Re: ODS HTML error

Posted in reply to Cynthia_sas

Thank you Cynthia, the Path/body format worked. Is this a new change with the new release?

We just updated our SAS license and that is when I started having this error message.

SAS Super FREQ
Posts: 9,431

Re: ODS HTML error

Hi:
Yes, I believe that with the new release, the use of PATH= is now required for ODS HTML. Using the path location in FILE= or BODY= will generate a message such as you observed. Here's the note about it:
http://support.sas.com/kb/15/046.html

Cynthia
SAS Employee
Posts: 1

Re: ODS HTML error

[ Edited ]

The ODS HTML Statement documentation has information on the usage of path/body(file) under the PATH= option. Here's the link: ODS HTML Statement

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 517 views
  • 2 likes
  • 4 in conversation