BookmarkSubscribeRSS Feed
Lost_Gary
Quartz | Level 8

I send a number of emails directly from SAS with charts or attached reports as a time saver - it is a wonderful tool.  I am attempting to include a graph and i am getting an error.  Below is my code and my error message.  

 

filename fileref email ("[email protected]")
From="[email protected]"
Subject="Language Preference"
type ="text/html";

ods html body= fileref ;
proc gchart data=test;
vbar languagePref/
sumvar=count
sum
inside=freq
outside=percent
percent
descending;

run;

ods html close;
filename fileref clear;

 

Log States:

ERROR: Insufficient authorization to access C:\WINDOWS\system32\gchart5.svg.

 

I only get the error when i try to embed this in an email otherwise the graph produces just fine (which puzzles me).  I am running EG 8.3 Update 5.  Thanks for the help.  

 

6 REPLIES 6
Reeza
Super User
Out of curiosity, what happens if you use HTML5 instead of HTML?

HTML doesn't embed a picture, it links it, HTML5 embeds images in the file directly.
Lost_Gary
Quartz | Level 8

it produces an email, but the details are in a string.  

 

Bar chart of Language Preference .18% .09% count sum 0 1000 2000   

 

Not the graph that I am looking for.  

Reeza
Super User
Interesting - you can specify the GPATH location on your ODS statement, set it to somewhere you do have write access and see if that attaches it correctly.
Lost_Gary
Quartz | Level 8

I can attach the graph as an HTML - but if i try to embed it  (which is what i want - open email see graph) it give me the same error.  

Dawinchyle
Calcite | Level 5

I’ve had good results pulling targeted leads by using a facebook email scraper, especially when I needed emails tied to specific niches or locations. I liked that it verified addresses in real time, so I wasn’t wasting time on dead ends, and exporting everything to a clean CSV made outreach smoother. It saved me from juggling messy spreadsheets and manual searching.

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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
  • 6 replies
  • 4456 views
  • 2 likes
  • 3 in conversation