<?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: How to insert table in Mail? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-insert-table-in-Mail/m-p/509762#M137088</link>
    <description>&lt;P&gt;Searching the communities threads unearths &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/How-i-can-change-borders-in-table-in-email-with-html/td-p/436602" target="_self"&gt;this&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Use&amp;nbsp;&lt;SPAN&gt;TAGSETS.MSOFFICE2K. Outlook is not HTML-friendly. Is not friendly&amp;nbsp;period actually. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Nov 2018 02:29:15 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2018-11-02T02:29:15Z</dc:date>
    <item>
      <title>How to insert table in Mail?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-insert-table-in-Mail/m-p/509446#M136965</link>
      <description>&lt;P&gt;Hello ,&amp;nbsp; I want to insert a table in mail which is automated by SAS, I created a table by using proc report but when output goes to mail table lines has been vanished? I dont know what am missing. could any one help?&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Temp1;
	set Temp;
	start_time=substr(start_time,1,8);
	start_time=input(start_time,ddmmyy8.);
	call symput('Newdate',start_time);
run;

Data Mail;
set Temp1;
/*if &amp;amp;Newdate&amp;gt;&amp;amp;prevtime;Compare with the previous job start time, comment it while running for very first time*/
run;
%put &amp;amp;Newdate &amp;amp;prevtime;


%let send_email = 0;

* WHEN 0 EMAIL WILL NOT BE SENT. WHEN 1 EMAIL WILL BE SENT;
data New;
	set Mail nobs=No_of_mail;
	count=No_of_mail;

	if count &amp;gt; 0 then
		do;
			call symput('send_email',1);
			stop;

			* LEAVE THE DATASTEP AS SOON AS WE DECIDE AN EMAIL SHOULD BE SENT;
		end;
run;

%macro send_email;
	%if &amp;amp;send_email eq 1 %then
		%do;
			FILENAME MailBox EMAIL

				TO=(
				'Myself &amp;lt;zzz.com&amp;gt;'
				) 
				CC=(
				'Myself &amp;lt;zzz.com&amp;gt;'
				)
				/*BCC=
				'info@synchrona.nl'*/
			FROM='Arun &amp;lt;zzz.com&amp;gt;'
			type='text/html'
			SUBJECT='DAILY_STATUS';

			/*REPLYTO=
				'Anonymous
				&amp;lt;villavinkeveen@hotmail.com&amp;gt;'*/

			/*ATTACH=
				'E:\My Documents\My Pictures\Picture WILLSU.jpg'*/
			ODS html body=Mailbox style = noline;
			ods html text = "DAILY STATUS";
			ods html text = "";

			PROC REPORT DATA=work.MAIL nowd HEADLINE HEADSKIP out=X.Existing
				style (report) = {background = white
				font_face = "Verdana" font_size = 7pt just=left bordercolor=grey rules=All frame=box}
				style (column) = {background = white CELLHEIGHT = 2.5%
				font_face = "Verdana" font_size = 7pt just=left }
				style (header) = {foreground = cx5e2750 font_face="Verdana"
				font_size = 8pt just=left
				};
				columns _All_;
			run;

			ods html text = "Have a Great Day.";
			ods _all_ close;
			run;

		%end;
%mend;

%send_email;

/**/
ods listing ;
/**/
	%global prevtime;
/**/

data X.Final1;
set X.existing;
call symput('prevtime',start_time);
run;
	t:&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Result:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24553i86C46CC801ED3518/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 10:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-insert-table-in-Mail/m-p/509446#M136965</guid>
      <dc:creator>arunrami</dc:creator>
      <dc:date>2018-11-01T10:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert table in Mail?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-insert-table-in-Mail/m-p/509762#M137088</link>
      <description>&lt;P&gt;Searching the communities threads unearths &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/How-i-can-change-borders-in-table-in-email-with-html/td-p/436602" target="_self"&gt;this&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Use&amp;nbsp;&lt;SPAN&gt;TAGSETS.MSOFFICE2K. Outlook is not HTML-friendly. Is not friendly&amp;nbsp;period actually. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 02:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-insert-table-in-Mail/m-p/509762#M137088</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-11-02T02:29:15Z</dc:date>
    </item>
  </channel>
</rss>

