I have a stored process that is called from a VA stored process container. I have several radio buttons and dropdowns all working fine, but when I try to insert a picture it will not render. If I call a second stored process and use ods PDF layout, then I can get the image to work on that ODS PDF, but I need the image to render in the current stored process.
I have tried using, what I thought would be the obvious answer:
%macro display_form;
data _NULL_;
file _webout;
put "<html>";
put " <head>";
put " <style media='screen' type='text/css'>";
put " .border {border-width: 1px; border-style: solid;}";
---bunch of code here---
put "<img src='//severName/folder/image.png'/>"; <--- what I thought was the obvious answer
stop;
run;
%mend;
%macro main;
---buch of code here---
%mend;
%main;
your image needs to be accessible from your browser - eg, such that if you were to paste the full-path location of the image into the address bar that you would see the image.
Typically this means placing your image on the SAS Web Server (htdocs folder) and using a _relative_ link to it, eg `/imgs/myimage.png` - the full path to which would be `https://yourSASwebserver/imgs/myimage.png`
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.