<?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: Remove Text from SAS email output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Remove-Text-from-SAS-email-output/m-p/772213#M245177</link>
    <description>&lt;P&gt;Hey Chris!&lt;/P&gt;&lt;P&gt;This seems to remove the other title, but then just adds the 'Term Attrition' in it's place:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keegan_0-1633448847571.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64373i42AED065417FB57D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keegan_0-1633448847571.png" alt="Keegan_0-1633448847571.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the updated code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html5 (id=mail) body=OUTPUT options(bitmap_mode="inline") gtitle

style=htmlblue;
ods escapechar='^';
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black} ";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black}Good morning,";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black} ";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black}See churn below and let me know if you have questions.";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black} ";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black}Thanks,";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black}Keegan";


ods graphics/ imagefmt=png width=1000px height=250px;
proc sgplot data=term_plot noautolegend; 
title 'Term Attrition';
	heatmapparm  y=prod_group x=week_starting1
	colorresponse=churn  / colormodel=(green yellow red) outline;
 text y=prod_group x=week_starting1 text=churn / textattrs=(size=11pt) ;
 
 yaxis label="Product Group";
 xaxis label="Week Beginning";
run;

proc sgrender data=attr_no_var 
              template=my_pie_chart;
run;

ods html5 (id=mail) close;

%mend;
%email;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also, I do want the titles within the image itself, just not outside of the image as stand alone text.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2021 15:49:03 GMT</pubDate>
    <dc:creator>Keegan</dc:creator>
    <dc:date>2021-10-05T15:49:03Z</dc:date>
    <item>
      <title>Remove Text from SAS email output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-Text-from-SAS-email-output/m-p/772189#M245165</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having an issue with extra text in an email I'm sending. Here is my output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keegan_0-1633446255001.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64371i4FCF4F4251C4251A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keegan_0-1633446255001.png" alt="Keegan_0-1633446255001.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've highlighted the text I'm trying to get rid of. I already have the titles in the charts themselves, and I'm also not sure why they are in the wrong positions, but I just want to remove them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I'm using:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro email;

data _null_;
call symputx("today",put(today(),mmddyy10.));
run;

options EMAILSYS=SMTP EMAILID="keegan.xxxxx@xxxxx.com" EMAILHOST="GESVR5050.xxxxx.xxxxx.com";

FILENAME output EMAIL SUBJECT="Churn by Week as of &amp;amp;today." 
				       FROM="keegan.xxxxx@xxxxx.com" 
				         TO=("keegan.xxxxx@xxxxx.com")
					     BC=("keegan.xxxxx@xxxxx.com")
						type='text/html'
						CT ='text/html';


ods html5 (id=mail) body=OUTPUT options(bitmap_mode="inline")

style=htmlblue;
ods escapechar='^';
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black} ";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black}Good morning,";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black} ";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black}See churn below and let me know if you have questions.";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black} ";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black}Thanks,";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black}Keegan";


ods graphics/ imagefmt=png width=1000px height=250px;
proc sgplot data=term_plot noautolegend; 
title 'Term Attrition';
	heatmapparm  y=prod_group x=week_starting1
	colorresponse=churn  / colormodel=(green yellow red) outline;
 text y=prod_group x=week_starting1 text=churn / textattrs=(size=11pt) ;
 
 yaxis label="Product Group";
 xaxis label="Week Beginning";
run;

proc sgrender data=attr_no_var 
              template=my_pie_chart;
run;

ods html5 (id=mail) close;

%mend;
%email;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I don't see why it's putting this text at the top. Do you have suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 15:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-Text-from-SAS-email-output/m-p/772189#M245165</guid>
      <dc:creator>Keegan</dc:creator>
      <dc:date>2021-10-05T15:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Text from SAS email output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-Text-from-SAS-email-output/m-p/772193#M245167</link>
      <description>&lt;P&gt;Try adding&amp;nbsp;&lt;STRONG&gt;gtitle&lt;/STRONG&gt; to the ODS HTML5 statement. That will put the title inside the graph image instead of in the text.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 15:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-Text-from-SAS-email-output/m-p/772193#M245167</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-10-05T15:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Text from SAS email output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-Text-from-SAS-email-output/m-p/772196#M245168</link>
      <description>&lt;P&gt;And if you don't want the title in the image, add an empty TITLE; statement before the procedure (like your SGRENDER).&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 15:13:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-Text-from-SAS-email-output/m-p/772196#M245168</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-10-05T15:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Text from SAS email output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-Text-from-SAS-email-output/m-p/772213#M245177</link>
      <description>&lt;P&gt;Hey Chris!&lt;/P&gt;&lt;P&gt;This seems to remove the other title, but then just adds the 'Term Attrition' in it's place:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keegan_0-1633448847571.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64373i42AED065417FB57D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keegan_0-1633448847571.png" alt="Keegan_0-1633448847571.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the updated code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html5 (id=mail) body=OUTPUT options(bitmap_mode="inline") gtitle

style=htmlblue;
ods escapechar='^';
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black} ";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black}Good morning,";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black} ";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black}See churn below and let me know if you have questions.";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black} ";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black}Thanks,";
ODS TEXT="^S={font_face='Calibri' font_size=3 fontweight=Medium foreground=black}Keegan";


ods graphics/ imagefmt=png width=1000px height=250px;
proc sgplot data=term_plot noautolegend; 
title 'Term Attrition';
	heatmapparm  y=prod_group x=week_starting1
	colorresponse=churn  / colormodel=(green yellow red) outline;
 text y=prod_group x=week_starting1 text=churn / textattrs=(size=11pt) ;
 
 yaxis label="Product Group";
 xaxis label="Week Beginning";
run;

proc sgrender data=attr_no_var 
              template=my_pie_chart;
run;

ods html5 (id=mail) close;

%mend;
%email;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also, I do want the titles within the image itself, just not outside of the image as stand alone text.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 15:49:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-Text-from-SAS-email-output/m-p/772213#M245177</guid>
      <dc:creator>Keegan</dc:creator>
      <dc:date>2021-10-05T15:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Text from SAS email output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-Text-from-SAS-email-output/m-p/772224#M245183</link>
      <description>&lt;P&gt;TITLE (and FOOTNOTE) are global statements that affect all of your procedure output until you "clear" them by entering an empty statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;title;
footnote;&lt;/PRE&gt;
&lt;P&gt;So I'd advise adding these to the top of your program or at least before the ODS HTML5 statements. I see you placed a TITLE statement "inside" the PROC SGPLOT step, but since it's a global statement it's actually compiled and takes effect in the same way it would if you added it before the PROC. It's a style preference that many coders have though -- to place the global statements inside the procedure block they are intended to affect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you're "done" with that TITLE, clear it with an empty TITLE statement as shown above.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 16:54:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-Text-from-SAS-email-output/m-p/772224#M245183</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-10-05T16:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Text from SAS email output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-Text-from-SAS-email-output/m-p/772227#M245185</link>
      <description>&lt;P&gt;Thank you so much Chris! That worked!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 16:58:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-Text-from-SAS-email-output/m-p/772227#M245185</guid>
      <dc:creator>Keegan</dc:creator>
      <dc:date>2021-10-05T16:58:38Z</dc:date>
    </item>
  </channel>
</rss>

