<?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 Problem in sending special Characters by mail in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Problem-in-sending-special-Characters-by-mail/m-p/62184#M17676</link>
    <description>Hi I am using the following code to send mails from z/OS to email addresses.My mail datset in z/OS contains special characters like Open Square Bracket and closed square brackets.[,]..but when I receive the mail these special char are converted into some junk characters.I have to use CODESET which understands these special char.How to use those CODESETS in this mail pgm so that special characters also will be sent right in the attachment.&lt;BR /&gt;
&lt;BR /&gt;
FILENAME MYMAIL EMAIL;                               &lt;BR /&gt;
DATA _NULL_;                                         &lt;BR /&gt;
  FILE MYMAIL TO=("mail address")         &lt;BR /&gt;
         SUBJECT='TEST MAIL FROM SAS'                &lt;BR /&gt;
         ATTACH=("datasetname"  EXT='TXT');  &lt;BR /&gt;
  PUT 'HI,';                                         &lt;BR /&gt;
  PUT 'ATTACHMENT   Report Test Mail Summary';       &lt;BR /&gt;
  RUN;</description>
    <pubDate>Wed, 19 Nov 2008 05:50:16 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-11-19T05:50:16Z</dc:date>
    <item>
      <title>Problem in sending special Characters by mail</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-in-sending-special-Characters-by-mail/m-p/62184#M17676</link>
      <description>Hi I am using the following code to send mails from z/OS to email addresses.My mail datset in z/OS contains special characters like Open Square Bracket and closed square brackets.[,]..but when I receive the mail these special char are converted into some junk characters.I have to use CODESET which understands these special char.How to use those CODESETS in this mail pgm so that special characters also will be sent right in the attachment.&lt;BR /&gt;
&lt;BR /&gt;
FILENAME MYMAIL EMAIL;                               &lt;BR /&gt;
DATA _NULL_;                                         &lt;BR /&gt;
  FILE MYMAIL TO=("mail address")         &lt;BR /&gt;
         SUBJECT='TEST MAIL FROM SAS'                &lt;BR /&gt;
         ATTACH=("datasetname"  EXT='TXT');  &lt;BR /&gt;
  PUT 'HI,';                                         &lt;BR /&gt;
  PUT 'ATTACHMENT   Report Test Mail Summary';       &lt;BR /&gt;
  RUN;</description>
      <pubDate>Wed, 19 Nov 2008 05:50:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-in-sending-special-Characters-by-mail/m-p/62184#M17676</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-19T05:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in sending special Characters by mail</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-in-sending-special-Characters-by-mail/m-p/62185#M17677</link>
      <description>Hi rao&lt;BR /&gt;
&lt;BR /&gt;
A statement that I've seen working sending attachements from a Mainframe was:&lt;BR /&gt;
    attach =("datasetname" ct='text/plain' extension="TXT")&lt;BR /&gt;
&lt;BR /&gt;
If it's 'only' about special characters: If you dare not to be part of the (US-) English realm in the world then I remember quite a bit of problems with finding the accurate translation table for EBCDIC/ASCII conversions. Does it work in 'normal" email text with the translation of special characters?&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Wed, 19 Nov 2008 10:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-in-sending-special-Characters-by-mail/m-p/62185#M17677</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-11-19T10:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in sending special Characters by mail</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-in-sending-special-Characters-by-mail/m-p/62186#M17678</link>
      <description>I am using the same attach statement.my dataset(file) in mainframe is in EBCDIC format and /charset is ibm-037 and my txt file  is ASCII and should be compatible with iso8859-1 to display special characters.Could you please suggest the syntax I can use for that..thanks..</description>
      <pubDate>Fri, 21 Nov 2008 04:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-in-sending-special-Characters-by-mail/m-p/62186#M17678</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-21T04:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in sending special Characters by mail</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-in-sending-special-Characters-by-mail/m-p/62187#M17679</link>
      <description>Hi Rao&lt;BR /&gt;
&lt;BR /&gt;
I can't promise that this works - but you could give it a try:&lt;BR /&gt;
&lt;BR /&gt;
attach =("datasetname" ct='text/plain' extension="TXT" encoding='ebcdic037' outencoding='latin1' )&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/lrdict.hlp/a002058232.htm" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/lrdict.hlp/a002058232.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Cheers, Patrick</description>
      <pubDate>Fri, 21 Nov 2008 04:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-in-sending-special-Characters-by-mail/m-p/62187#M17679</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-11-21T04:49:01Z</dc:date>
    </item>
  </channel>
</rss>

