<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAS Graph issue - sending an email in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974601#M377950</link>
    <description>&lt;P&gt;This code works for me and does not generate an error in 9.4M8. If you have problems with this, please send the complete log.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / imagefmt=png height=1000 width=1000;

filename send EMAIL 
	TO=( 
"aaa@bbb.com"
)
 subject="test"
 type="text/html";

ods _all_ close;
ods html (id=mail) file=send style=pearlj
 options(bitmap_mode="inline") gtitle;
 title "test";
proc gchart DATA=sashelp.class ; 
 	VBAR 
	 sex
 /
 SUMVAR=height
 DISCRETE
	CLIPREF
FRAME	
	COUTLINE=BLACK
 ;   
run;
quit;
	ods html (id=mail) close; 
	ods listing;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 09 Sep 2025 11:07:23 GMT</pubDate>
    <dc:creator>Kathryn_SAS</dc:creator>
    <dc:date>2025-09-09T11:07:23Z</dc:date>
    <item>
      <title>SAS Graph issue - sending an email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974595#M377946</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Recently we have upgraded our env to M8. Below code works fine in old env but in M8, it is not sending the graph via email properly. It is sending just info but not in the form of graph. do we need to update any option in below code. Could you please advise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / imagefmt=png height=1000 width=1000;

filename send EMAIL 
	TO=( 
"xxxx"
)
 subject="test"
 type="text/html";

ods html5 (id=mail) file=send style=pearlj
 options(bitmap_mode="inline") gtitle;
 title "test";
proc gchart DATA=sashelp.class ; 
 	VBAR 
	 sex
 /
 SUMVAR=height
 DISCRETE
	CLIPREF
FRAME	
	COUTLINE=BLACK
 ;   
run;

	ods html5 (id=mail) close; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;code should send an email like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sathya66_0-1757412259331.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109794iF579FFA902C7DFAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sathya66_0-1757412259331.png" alt="sathya66_0-1757412259331.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;instead, it is ending below info via email&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sathya66_1-1757412308248.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109795i34741920D8130857/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sathya66_1-1757412308248.png" alt="sathya66_1-1757412308248.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;SS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 10:06:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974595#M377946</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2025-09-09T10:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graph issue - sending an email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974598#M377948</link>
      <description>&lt;P&gt;Your code works with the ODS HTML destination. With ODS HTML5, PROC SGPLOT works successfully. Are either of these an option for you?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 10:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974598#M377948</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-09-09T10:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graph issue - sending an email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974599#M377949</link>
      <description>&lt;P&gt;Above code works fine without ERRORs&amp;nbsp; but not sending the proper output via email. Any option would work for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried with ods html. I am getting below ERROR.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ERROR: Insufficient authorization to access /config/Lev1/SASApp/gchart4.svg.
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 11:01:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974599#M377949</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2025-09-09T11:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graph issue - sending an email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974601#M377950</link>
      <description>&lt;P&gt;This code works for me and does not generate an error in 9.4M8. If you have problems with this, please send the complete log.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / imagefmt=png height=1000 width=1000;

filename send EMAIL 
	TO=( 
"aaa@bbb.com"
)
 subject="test"
 type="text/html";

ods _all_ close;
ods html (id=mail) file=send style=pearlj
 options(bitmap_mode="inline") gtitle;
 title "test";
proc gchart DATA=sashelp.class ; 
 	VBAR 
	 sex
 /
 SUMVAR=height
 DISCRETE
	CLIPREF
FRAME	
	COUTLINE=BLACK
 ;   
run;
quit;
	ods html (id=mail) close; 
	ods listing;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Sep 2025 11:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974601#M377950</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-09-09T11:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graph issue - sending an email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974603#M377951</link>
      <description>&lt;PRE&gt;27         
28         ods graphics / imagefmt=png height=1000 width=1000;
29         
30         filename send EMAIL
31         	TO=(
32         "xxxxxxx"
33         )
34          subject="test"
35          type="text/html";
36         
37         ods _all_ close;
38         ods html (id=mail) file=send style=pearlj
39          options(bitmap_mode="inline") gtitle;
NOTE: Writing HTML(MAIL) Body file: SEND
40          title "test";
41         proc gchart DATA=sashelp.class ;
42          	VBAR
43         	 sex
44          /
45          SUMVAR=height
46          DISCRETE
47         	CLIPREF
48         FRAME	
49         	COUTLINE=BLACK
50          ;
51         run;

ERROR: Insufficient authorization to access /config/Lev1/SASApp/gchart.svg.
52         quit;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
2                                                          The SAS System                    Tuesday, September  9, 2025 12:10:00 PM

NOTE: PROCEDURE GCHART used (Total process time):
      real time           0.10 seconds
      cpu time            0.11 seconds
      

53         	ods html (id=mail) close;
Message sent
      To:          "xxxx"
      Cc:          
      Bcc:         
      Subject:     test
      Attachments: 
54         	ods listing;
55         &lt;/PRE&gt;
&lt;P&gt;I am getting above ERROR.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 11:12:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974603#M377951</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2025-09-09T11:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graph issue - sending an email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974607#M377952</link>
      <description>&lt;P&gt;Try adding the following to see if that makes a difference:&lt;/P&gt;
&lt;P&gt;goptions device=PNG;&lt;/P&gt;
&lt;P&gt;/* before this statement */&lt;BR /&gt;ods _all_ close;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 11:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974607#M377952</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-09-09T11:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graph issue - sending an email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974611#M377953</link>
      <description>&lt;P&gt;No, giving the same ERROR&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2 The SAS System Tuesday, September 9, 2025 12:10:00 PM&lt;BR /&gt;&lt;BR /&gt;ERROR: Insufficient authorization to access /config/Lev1/SASApp/gchart3.png.&lt;BR /&gt;ERROR: Physical file does not exist, /config/Lev1/SASApp/gchart3.png.&lt;BR /&gt;56 quit;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 12:18:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974611#M377953</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2025-09-09T12:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graph issue - sending an email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974612#M377954</link>
      <description>&lt;P&gt;Seen this post&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Saving-PROC-GPLOT-graph-to-folder/td-p/147397" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/Saving-PROC-GPLOT-graph-to-folder/td-p/147397&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but it doesn't resolve my issue. code is not sending the output properly via email.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 12:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974612#M377954</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2025-09-09T12:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graph issue - sending an email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974613#M377955</link>
      <description>&lt;P&gt;Resolved it by adding goption&lt;/P&gt;
&lt;PRE&gt;goptions reset=all device=png gsfname=graphout;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;goptions reset=all device=png gsfname=graphout;

ods graphics / imagefmt=png height=1000 width=1000;

filename send EMAIL 
	TO=( 
"xxxx"
)
 subject="test"
 type="text/html";

ods html5 (id=mail) file=send style=pearlj
 options(bitmap_mode="inline") gtitle;
 title "test";
proc gchart DATA=sashelp.class ; 
 	VBAR 
	 sex
 /
 SUMVAR=height
 DISCRETE
	CLIPREF
FRAME	
	COUTLINE=BLACK
 ;   
run;

	ods html5 (id=mail) close; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Sep 2025 12:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Graph-issue-sending-an-email/m-p/974613#M377955</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2025-09-09T12:35:06Z</dc:date>
    </item>
  </channel>
</rss>

