BookmarkSubscribeRSS Feed
cuevasj
Quartz | Level 8

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;

1 REPLY 1
AllanBowe
Barite | Level 11

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`

 

 

/Allan
MacroCore library for app developers
Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1083 views
  • 0 likes
  • 2 in conversation