I export the HTML 5 results from SAS EG to my desktop. I end up with one HTML file. When I open it on my local machine it shows figures images nicely in a browser. However, when I send it via email and open the attachment the images are not shown. Is there anything I can do to embed the images in one html file similar to a Jupyter notebook? Thanks!
@csetzkorn wrote:
Sure but Jupyter notebook embeds images somehow, which is more user friendly ...
That's because it uses an additional layer in its backend that works like a content management system. When you use ODS HTML, you work on the level of HTML, not on the level of a CMS.
And keep in mind that you're a SAS programmer, not just a SAS user. This means that there are things you need to take care of, while also opening up a lot of flexibility. Proper definition of the path options will lead to output that is contained in a single directory tree and can be handled (for copying etc) in one fell swoop.
Maybe it's because I'm old, but I happily trade a lot of "comfort" for having direct control over the working of things.
A html page with pictures is actually a file.htm and a directory that contains the pictures.
What have you sent by email? and how have you done it?
Post your code in order that the forum can help you.
Actually I just found the folder with the images looking at one of the HTML img tags:
<div class="c">
<img alt="The SGPlot Procedure" src="HTML%20-%20PA2BubblePlots1_files/img0.png" style=" height: 480px; width: 640px;" border="0" class="c">
</div>
Sorry! Is it possible to embed them like in a Jupyter notebook?
I'm not familiar with Jupyter notebook.
Alternatively you can zip the directory containing the html + image files.
The receiver should unzip it.
PDF or RTF is user-friendly, would that meet your needs?
That's how HTML handles non-textual data. Images, videos, audio etc. are served as separate files.
@csetzkorn wrote:
Sure but Jupyter notebook embeds images somehow, which is more user friendly ...
That's because it uses an additional layer in its backend that works like a content management system. When you use ODS HTML, you work on the level of HTML, not on the level of a CMS.
And keep in mind that you're a SAS programmer, not just a SAS user. This means that there are things you need to take care of, while also opening up a lot of flexibility. Proper definition of the path options will lead to output that is contained in a single directory tree and can be handled (for copying etc) in one fell swoop.
Maybe it's because I'm old, but I happily trade a lot of "comfort" for having direct control over the working of things.
Or at least knowing when I am letting the system defaults take over and what they are.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.