<?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: using mainframe sas to send smtp email to outlook results in garbage in the body in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/using-mainframe-sas-to-send-smtp-email-to-outlook-results-in/m-p/336758#M76372</link>
    <description>&lt;P&gt;Any standard text on a mainframe is created using the EBCDIC code.&lt;/P&gt;
&lt;P&gt;Try something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;length charvar $50;
charvar = "Please attend coder's corner";
put charvar $ascii50.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to convert the text to ASCII.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2017 22:11:36 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-02-28T22:11:36Z</dc:date>
    <item>
      <title>using mainframe sas to send smtp email to outlook results in garbage in the body</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-mainframe-sas-to-send-smtp-email-to-outlook-results-in/m-p/336693#M76356</link>
      <description>&lt;P&gt;Community, &amp;nbsp;using sas v9.4 on the mainframe just trying to get a simple proof of concept batch job to work with limited results.&lt;/P&gt;
&lt;P&gt;I've seen the myriad examples and I'm sure I'm doing something dopey but am at wits end.&lt;/P&gt;
&lt;P&gt;This jcl:&lt;/P&gt;
&lt;P&gt;//IDS EXEC SAS,OPTIONS='CPUID,NOTES'&lt;BR /&gt;//SAS.SASLOG DD SYSOUT=*&lt;BR /&gt;//SAS.SASLIST DD SYSOUT=*&lt;BR /&gt;//SYSIN DD *&lt;BR /&gt; OPTIONS EMAILSYS = SMTP;&lt;BR /&gt; OPTIONS EMAILHOST = XXXXXX.YADA.COM;&lt;BR /&gt; FILENAME MYEMAIL EMAIL&lt;BR /&gt; TO="MYUSERID.XXX.COM"&lt;BR /&gt; SUBJECT="CODER'S CORNER"&lt;BR /&gt; TYPE="TEXT/PLAIN";&lt;BR /&gt; DATA _NULL_;&lt;BR /&gt; FILE MYEMAIL;&lt;BR /&gt; PUT "PLEASE ATTENDED CODER'S CORNER";&lt;BR /&gt; RUN;&lt;BR /&gt; FILENAME MYEMAIL CLEAR;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sends the email to my Microsoft Outlook mailbox, Subject looks just fine, but the one line&lt;/P&gt;
&lt;P&gt;I have in the body "PLEASE ATTENDED CODERS CORNER" &amp;nbsp;comes across in the body of the email as&lt;/P&gt;
&lt;P&gt;WSEAbE@AccEUDED@CVDEY}b@CVYUEY&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is causing the put statement to get garbled??&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 19:39:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-mainframe-sas-to-send-smtp-email-to-outlook-results-in/m-p/336693#M76356</guid>
      <dc:creator>mbieganski</dc:creator>
      <dc:date>2017-02-28T19:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: using mainframe sas to send smtp email to outlook results in garbage in the body</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-mainframe-sas-to-send-smtp-email-to-outlook-results-in/m-p/336758#M76372</link>
      <description>&lt;P&gt;Any standard text on a mainframe is created using the EBCDIC code.&lt;/P&gt;
&lt;P&gt;Try something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;length charvar $50;
charvar = "Please attend coder's corner";
put charvar $ascii50.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to convert the text to ASCII.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 22:11:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-mainframe-sas-to-send-smtp-email-to-outlook-results-in/m-p/336758#M76372</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-28T22:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: using mainframe sas to send smtp email to outlook results in garbage in the body</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-mainframe-sas-to-send-smtp-email-to-outlook-results-in/m-p/336994#M76458</link>
      <description>&lt;P&gt;worked like a charm!!&amp;nbsp;&amp;nbsp; Thanks a million Kurt!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 14:23:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-mainframe-sas-to-send-smtp-email-to-outlook-results-in/m-p/336994#M76458</guid>
      <dc:creator>mbieganski</dc:creator>
      <dc:date>2017-03-01T14:23:05Z</dc:date>
    </item>
  </channel>
</rss>

