BookmarkSubscribeRSS Feed
P5C768
Obsidian | Level 7

I'm trying to insert an image from a file location into an animated GIF I am creating using ODS HTML.  The output doesn't contain the image, but rather just the file path listed (i.e. "<img src=""Logo1.gif""></img>".  I suspect there may be some conflict using the device=gif option (which I need to create the GIF) and inserting the logo into the file, but I just wanted to confirm.  I appreciate any assistance that is provided.  Thanks!

filename odsout '.';

goptions device=gif xpixels=950 ypixels=600 hsize= vsize=;

options animduration=0.9 animloop=1 animoverlay=no animate=start center;

ods listing close;

ods html file='Month.html' path = odsout  style=htmlblue;

options nobyline;

title1 lspace=2 "Chart Title" height=8 font="thorndale amt/bold";

title2 color=red lspace=1.0 font="thorndale amt/bold" height=3 "#byval(date)";

footnote1 move=(5,5) color=cxd3e0e6 justify=l lspace=1.0 font="albany amt/bold" height=15 "#byval(variable)";

footnote2 j=r "<img src=""Logo1.gif""></img>";

<proc gmap code>

ODS HTML CLOSE;

ODS LISTING;

2 REPLIES 2
Spacejump
Calcite | Level 5

Hi,

Sorry I can't answer to your question but I have another one ... I hope you will help me.

In your code, how did you fix the path attached to odsout for your ods html output ?

Thanks good luck

P5C768
Obsidian | Level 7

In the filename odsout '.' piece, you would change the '.' to whatever output file location you want to use, say C/my documents or something like that.  It somewhat depends on your environment, I use EG on a grid environment, so the only option I have is to use a SAS Server file location, I can't reference a local or network drive directly.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 2 replies
  • 1546 views
  • 0 likes
  • 2 in conversation