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
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.