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 ("myemail@myemail.com")
From="myemail@myemail.com"
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.
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.
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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.