<?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: eMail from SAS - Remove blank lines at the top of the message in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/eMail-from-SAS-Remove-blank-lines-at-the-top-of-the-message/m-p/923899#M26554</link>
    <description>Have you tried ods html other than ods html3? and also try to open email in web browser other than outlook, just to ensure outlook display the same with web browser.</description>
    <pubDate>Thu, 11 Apr 2024 02:15:31 GMT</pubDate>
    <dc:creator>whymath</dc:creator>
    <dc:date>2024-04-11T02:15:31Z</dc:date>
    <item>
      <title>eMail from SAS - Remove blank lines at the top of the message</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/eMail-from-SAS-Remove-blank-lines-at-the-top-of-the-message/m-p/923895#M26553</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a piece of SAS code that generates a simple eMail with an embedded Proc Print/Report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below produces the eMail and the report OK, but as you can see from the screenshot, there are several blank lines at the top of the eMail message and also the TITLE1 from the Proc Report does not appear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) How do I ensure that the three text lines appear at the top of the eMail message ?&lt;/P&gt;&lt;P&gt;2) How do I get my TITLE1 to appear above the Proc Report ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArthurTrubshaw_1-1712799128379.png" style="width: 1102px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95442iEF2171A0A08C3FCB/image-dimensions/1102x406?v=v2" width="1102" height="406" role="button" title="ArthurTrubshaw_1-1712799128379.png" alt="ArthurTrubshaw_1-1712799128379.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The demo code that I am using is shown below. I am using HTML3 as the ODS destination because HTML, HTML4 and HTML5 produce even worse results and all of them feature these blank lines at the start of the message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;*************************************************************************;&lt;BR /&gt;*Define the Fileref thorugh which to send our eMail........              ;&lt;BR /&gt;*************************************************************************;&lt;BR /&gt;Filename 	MyMail  &lt;BR /&gt;         	eMail&lt;BR /&gt;			To              = "&amp;amp;g_eMail_Recipient"&lt;BR /&gt;			From            = "&amp;amp;g_eMail_Sender"&lt;BR /&gt;			Subject         = "FRED - Using SAS Styles Demo- with Embedded Proc Report - Journal (HTML3)"&lt;BR /&gt;			Content_Type    = "text/html"&lt;BR /&gt;			;&lt;BR /&gt;ODS _ALL_ CLOSE; &lt;BR /&gt;&lt;BR /&gt;ODS HTML3 BODY=MyMail STYLE=Journal; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;	OPTIONS NOCENTER; &lt;BR /&gt;	&lt;BR /&gt;	/*OPENING TEXT*/ &lt;BR /&gt;	ods text="This is Line #1 of the eMail body text.";&lt;BR /&gt;	ods text="This is Line #2 of the eMail body text.";&lt;BR /&gt;	ods text="This is Line #3 of the eMail body text.";&lt;BR /&gt;	&lt;BR /&gt;&lt;BR /&gt;	TITLE1 "SAS Report Title goes here."; &lt;BR /&gt;	PROC REPORT DATA = SASHELP.CLASS(OBS=5); &lt;BR /&gt;	COLUMNS _ALL_; &lt;BR /&gt;	DEFINE _ALL_ / DISPLAY CENTER; &lt;BR /&gt;	RUN; &lt;BR /&gt;	&lt;BR /&gt;	TITLE; &lt;BR /&gt;	&lt;BR /&gt;	ods text="This is the final line of the eMail. Goodbyeeeeeee!";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;****************************************************************;&lt;BR /&gt;*Close the ODS HTML destination and re-open the standard output.;&lt;BR /&gt;****************************************************************;&lt;BR /&gt;ODS HTML3 CLOSE;&lt;BR /&gt;ODS LISTING;&lt;BR /&gt;&lt;BR /&gt;*************************************************************************;&lt;BR /&gt;*Clear the FileRef.                                                      ;&lt;BR /&gt;*************************************************************************;&lt;BR /&gt;Filename MyMail Clear;&lt;/PRE&gt;&lt;P&gt;Any thoughts as to how to get my message to start at the top of the eMail instead of half-way down it ?&lt;/P&gt;&lt;P&gt;I have played with using Proc ODSTEXT instead of the ODS TEXT statements, but the results are the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArthurT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 01:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/eMail-from-SAS-Remove-blank-lines-at-the-top-of-the-message/m-p/923895#M26553</guid>
      <dc:creator>ArthurTrubshaw</dc:creator>
      <dc:date>2024-04-11T01:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: eMail from SAS - Remove blank lines at the top of the message</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/eMail-from-SAS-Remove-blank-lines-at-the-top-of-the-message/m-p/923899#M26554</link>
      <description>Have you tried ods html other than ods html3? and also try to open email in web browser other than outlook, just to ensure outlook display the same with web browser.</description>
      <pubDate>Thu, 11 Apr 2024 02:15:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/eMail-from-SAS-Remove-blank-lines-at-the-top-of-the-message/m-p/923899#M26554</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2024-04-11T02:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: eMail from SAS - Remove blank lines at the top of the message</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/eMail-from-SAS-Remove-blank-lines-at-the-top-of-the-message/m-p/923904#M26555</link>
      <description>&lt;P&gt;Hello Whymath,&lt;/P&gt;&lt;P&gt;Yes, I have tried each of&amp;nbsp;&lt;SPAN&gt;HTML, HTML4 and HTML5 ODS destinations but get the same blank lines at the start of the eMail whichever destination I chose. I see the same problem when I open any resultant eMails in a browser too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ArthurT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 03:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/eMail-from-SAS-Remove-blank-lines-at-the-top-of-the-message/m-p/923904#M26555</guid>
      <dc:creator>ArthurTrubshaw</dc:creator>
      <dc:date>2024-04-11T03:18:34Z</dc:date>
    </item>
  </channel>
</rss>

