<?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: Send sas7bdat format file through SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Send-sas7bdat-format-file-through-SAS/m-p/686837#M208463</link>
    <description>There does not seem to be a fix for this error yet:&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/39/996.html" target="_blank"&gt;https://support.sas.com/kb/39/996.html&lt;/A&gt;</description>
    <pubDate>Fri, 25 Sep 2020 21:29:10 GMT</pubDate>
    <dc:creator>pink_poodle</dc:creator>
    <dc:date>2020-09-25T21:29:10Z</dc:date>
    <item>
      <title>Send sas7bdat format file through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-sas7bdat-format-file-through-SAS/m-p/686735#M208441</link>
      <description>&lt;P&gt;I created a macro, and try to use the macro to send a .sas7bdat file to an email. And I got the error message of "&lt;SPAN&gt;&lt;STRONG&gt;ERROR: An attachment record was truncated. The attachment LRECL is too small&lt;/STRONG&gt;.", even after I specified the&amp;nbsp;LRECL=32767, and file type as&amp;nbsp;filetype=application/octet-stream, extension = sas7bdat. The code is as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro email2box(emailaddress=, filepath=, filetype=);&lt;/P&gt;&lt;P&gt;filename MailBox email "&amp;amp;emailaddress" attach="&amp;amp;filepath";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;file MailBox;&lt;BR /&gt;put '!EM_ATTACH!' "&amp;amp;filepath" LRECL=32767;&lt;BR /&gt;put '!EM_CONTENTTYPE!' "&amp;amp;filetype" extension = 'sas7bdat';&lt;BR /&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%mend email2box;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%email2box(emailaddress=abc@u.box.comm,filepath=/box/icon_lab.sas7bdat, filetype=application/octet-stream);&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 15:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-sas7bdat-format-file-through-SAS/m-p/686735#M208441</guid>
      <dc:creator>Min3</dc:creator>
      <dc:date>2020-09-25T15:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Send sas7bdat format file through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-sas7bdat-format-file-through-SAS/m-p/686837#M208463</link>
      <description>There does not seem to be a fix for this error yet:&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/39/996.html" target="_blank"&gt;https://support.sas.com/kb/39/996.html&lt;/A&gt;</description>
      <pubDate>Fri, 25 Sep 2020 21:29:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-sas7bdat-format-file-through-SAS/m-p/686837#M208463</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2020-09-25T21:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Send sas7bdat format file through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-sas7bdat-format-file-through-SAS/m-p/686847#M208465</link>
      <description>&lt;P&gt;Another option would be to create a transport file using proc Cport. This will require a recipient to use Proc Cimport to bring it into the SAS system but these files are intended for interchange between different systems, are text files and may be less sensitive to things that binary files encounter and may be preferred if sending to different operating systems.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 21:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-sas7bdat-format-file-through-SAS/m-p/686847#M208465</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-25T21:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Send sas7bdat format file through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-sas7bdat-format-file-through-SAS/m-p/686917#M208493</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename MailBox email
  to="&amp;amp;emailaddress"
  attach=("&amp;amp;filepath" content_type="application/x-sas")
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Sep 2020 13:06:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-sas7bdat-format-file-through-SAS/m-p/686917#M208493</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-26T13:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Send sas7bdat format file through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-sas7bdat-format-file-through-SAS/m-p/688277#M209048</link>
      <description>&lt;P&gt;Thanks everybody for your replies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-sas"&gt;&lt;CODE&gt;filename MailBox email
  to="&amp;amp;emailaddress"
  attach=("&amp;amp;filepath" content_type="application/x-sas")
;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But somehow, it still doesn't work for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 16:12:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-sas7bdat-format-file-through-SAS/m-p/688277#M209048</guid>
      <dc:creator>Min3</dc:creator>
      <dc:date>2020-10-01T16:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Send sas7bdat format file through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-sas7bdat-format-file-through-SAS/m-p/688278#M209049</link>
      <description>It does not work for me either - does not give an error, just doesn’t send any email.&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Oct 2020 16:14:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-sas7bdat-format-file-through-SAS/m-p/688278#M209049</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2020-10-01T16:14:13Z</dc:date>
    </item>
  </channel>
</rss>

