BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DavidPhillips2
Rhodochrosite | Level 12

In SAS 9.2 I have a stored procedure that I am displaying in a URL display portlet.  What is the best location to store images such that I can call them in the stored processes.

I wasn’t sure if this should be in the stored processes section or SAS / Graph and ODS Graphics.


The display code is:


<IMG SRC="/SASStoredProcess/do?_program=

      /WebApps/Utilities/Sales+by+Product&XPIXELS=

400&YPIXELS=300">


SAS Stored Processes: Embedding Graphics

1 ACCEPTED SOLUTION

Accepted Solutions
Quentin
Super User

If you want to have, for example, a SAS procedure (GPLOT, SGPLOT, PROC TABULATE, etc) create a little html page that incorporates an image, I would put the image file somewhere that the SAS server can see.  Then use the style template or proc syntax or whatever to display the image.

This paper for example describes how PROC REPORT can insert images into output.

http://www2.sas.com/proceedings/sugi27/p187-27.pdf

This paper has examples of inserting logos with SGPLOT

https://support.sas.com/resources/papers/proceedings11/277-2011.pdf

HTH.

BASUG is hosting free webinars Next up: Mike Sale presenting Data Warehousing with SAS April 10 at noon ET. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.

View solution in original post

4 REPLIES 4
Quentin
Super User

What do you mean by call them [images] in the stored process?

  • you want the stored process to generate an image (graph or whatever) and display it?
  • you want the stored process to generate an html page that includes a link to an image already sitting on your web server (like a logo)?
  • something else?
BASUG is hosting free webinars Next up: Mike Sale presenting Data Warehousing with SAS April 10 at noon ET. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.
DavidPhillips2
Rhodochrosite | Level 12

I want to display a logo.

Quentin
Super User

If you want to have, for example, a SAS procedure (GPLOT, SGPLOT, PROC TABULATE, etc) create a little html page that incorporates an image, I would put the image file somewhere that the SAS server can see.  Then use the style template or proc syntax or whatever to display the image.

This paper for example describes how PROC REPORT can insert images into output.

http://www2.sas.com/proceedings/sugi27/p187-27.pdf

This paper has examples of inserting logos with SGPLOT

https://support.sas.com/resources/papers/proceedings11/277-2011.pdf

HTH.

BASUG is hosting free webinars Next up: Mike Sale presenting Data Warehousing with SAS April 10 at noon ET. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.
DavidPhillips2
Rhodochrosite | Level 12

On the same server that the stored procedure is being called from.

PUT "<tr><td><IMG SRC='https://myserver/banner.jpg'><td><tr>";

This link http://support.sas.com/kb/34/138.html did not work for me but might be useful for someone else.

sas-innovate-2024.png

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.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 2067 views
  • 0 likes
  • 2 in conversation