<?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: Creating an email body in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-an-email-body-in-SAS/m-p/492449#M129408</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, I was thinking more like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;filename outbox email
   to='susan@site.com'
   type='text/html'
   subject='Temperature Conversions';&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for your mailing part and then building your string with HTML coding something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;strEmailBody = "&lt;/SPAN&gt;&lt;SPAN&gt;Hi all, &amp;lt;br&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;strEmailBody = strEmailBody + "&lt;/SPAN&gt;&lt;SPAN&gt;Attached is the list as of &amp;amp;ValDate to be used for the following:&amp;lt;br&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;etc&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I just don't know enough to know if the html tags (&amp;lt;br&amp;gt;, &amp;lt;p&amp;gt;, &amp;lt;emphasis&amp;gt;, etc) will express doing it that way or if you need to use ODS output or what.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I can't help you on the macro or the date issue, I was just thinking about how it might be nicer to use "&amp;lt;br&amp;gt;" &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;instead of "&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;" to try and force your formatting.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&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;</description>
    <pubDate>Tue, 04 Sep 2018 19:28:58 GMT</pubDate>
    <dc:creator>HB</dc:creator>
    <dc:date>2018-09-04T19:28:58Z</dc:date>
    <item>
      <title>Creating an email body in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-an-email-body-in-SAS/m-p/492351#M129366</link>
      <description>&lt;P&gt;There has got to be a better way than using the %STR function. I don't particularly like the way I did it because I needed to change my &amp;amp;ValDate variable to be MMDDYY10. instead of WORDDATE. Word date's length will change depending on the month causing all my hard work spacing out the text to create line breaks to change from month to month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code. (looks like pasting doesn't preserve the spacing but you get the point. I had to add tons of spaces after each line to create&amp;nbsp;line breaks)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%LET strEmailBody = %STR(&lt;BR /&gt;Hi all,&lt;BR /&gt;Attached is the list as of &amp;amp;ValDate to be used for the following:&lt;BR /&gt;1.&amp;nbsp;A&lt;BR /&gt;2.&amp;nbsp;B as of &amp;amp;ValDate&lt;BR /&gt;3. C&lt;BR /&gt;4. D&lt;BR /&gt;5.&amp;nbsp;E&amp;nbsp;&lt;BR /&gt;Thanks,&lt;BR /&gt;Me&lt;/P&gt;&lt;P&gt;*This message was sent automatically from SAS. Please contact me if you no longer need to be on the mailing&lt;BR /&gt;list or somebody else needs to be added. Thanks.);&lt;/P&gt;&lt;P&gt;%PUT &amp;amp;strEmailBody;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 15:53:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-an-email-body-in-SAS/m-p/492351#M129366</guid>
      <dc:creator>pchappus</dc:creator>
      <dc:date>2018-09-04T15:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an email body in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-an-email-body-in-SAS/m-p/492367#M129378</link>
      <description>&lt;P&gt;I think strEmailBody is a pretty standard thing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But regarding&amp;nbsp; "&lt;SPAN&gt;&amp;nbsp;I had to add tons of spaces after each line to create&amp;nbsp;line breaks", have you tried sending HTML email and using &amp;lt;br&amp;gt; and other HTML tags for your formatting?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 16:38:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-an-email-body-in-SAS/m-p/492367#M129378</guid>
      <dc:creator>HB</dc:creator>
      <dc:date>2018-09-04T16:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an email body in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-an-email-body-in-SAS/m-p/492385#M129388</link>
      <description>&lt;P&gt;I haven't.. how would do something like that? PROC HTML and then use a call symput to create a the macro variable?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 17:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-an-email-body-in-SAS/m-p/492385#M129388</guid>
      <dc:creator>pchappus</dc:creator>
      <dc:date>2018-09-04T17:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an email body in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-an-email-body-in-SAS/m-p/492449#M129408</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, I was thinking more like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;filename outbox email
   to='susan@site.com'
   type='text/html'
   subject='Temperature Conversions';&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for your mailing part and then building your string with HTML coding something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;strEmailBody = "&lt;/SPAN&gt;&lt;SPAN&gt;Hi all, &amp;lt;br&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;strEmailBody = strEmailBody + "&lt;/SPAN&gt;&lt;SPAN&gt;Attached is the list as of &amp;amp;ValDate to be used for the following:&amp;lt;br&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;etc&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I just don't know enough to know if the html tags (&amp;lt;br&amp;gt;, &amp;lt;p&amp;gt;, &amp;lt;emphasis&amp;gt;, etc) will express doing it that way or if you need to use ODS output or what.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I can't help you on the macro or the date issue, I was just thinking about how it might be nicer to use "&amp;lt;br&amp;gt;" &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;instead of "&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;" to try and force your formatting.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&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;</description>
      <pubDate>Tue, 04 Sep 2018 19:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-an-email-body-in-SAS/m-p/492449#M129408</guid>
      <dc:creator>HB</dc:creator>
      <dc:date>2018-09-04T19:28:58Z</dc:date>
    </item>
  </channel>
</rss>

