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.
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
Your HTML file test.html is being written to an invalid directory. Post your code so we can see what is happening more clearly.
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
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.
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
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.