<?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: ERROR: An attachment record was truncated.  The attachment LRECL is too small. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-An-attachment-record-was-truncated-The-attachment-LRECL-is/m-p/450564#M29135</link>
    <description>&lt;P&gt;Also note that a text file created on UNIX (html is text) will have only LF for end-of-line, which will not be recognized on Windows, as it needs CRLF.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Apr 2018 10:48:57 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-04-03T10:48:57Z</dc:date>
    <item>
      <title>ERROR: An attachment record was truncated.  The attachment LRECL is too small.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-An-attachment-record-was-truncated-The-attachment-LRECL-is/m-p/450454#M29123</link>
      <description>&lt;P&gt;%macro Email_notification(subject=,Message=);&lt;BR /&gt;filename mail email to=('pravakar.chaudhury@xx.com' ) type='text/html'&lt;BR /&gt;subject="'LDAP Sync JOB Completed In PROD.'" ATTACH=('/projects/so/Pravakar/user_Added.html'&lt;BR /&gt;'/projects/so/Pravakar/User_Deleted.html' '/projects/so/Pravakar/User_Updated.html' LRECL=9999);&lt;BR /&gt;data _null_;&lt;BR /&gt;file mail;&lt;BR /&gt;Put "Hi Admins" ;&lt;BR /&gt;put " SAS Metadata and LDAP Sync job has 'Updated Metadata successfully. ' " ;&lt;BR /&gt;Put " Number of Users Added , " ;&lt;BR /&gt;Put " Number of Users Deleted , " ;&lt;BR /&gt;Put "Number of Users Metadata Updated . " ;&lt;BR /&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%mend Email_notification;&lt;/P&gt;&lt;P&gt;%Email_notification;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting "ERROR: An attachment record was truncated.&amp;nbsp; The attachment LRECL is too small."&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used&amp;nbsp;CONTENT_TYPE='text/html' also but got same ERROR.&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 20:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-An-attachment-record-was-truncated-The-attachment-LRECL-is/m-p/450454#M29123</guid>
      <dc:creator>Pravakarc</dc:creator>
      <dc:date>2018-04-02T20:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: An attachment record was truncated.  The attachment LRECL is too small.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-An-attachment-record-was-truncated-The-attachment-LRECL-is/m-p/450464#M29125</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202473"&gt;@Pravakarc&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;%macro Email_notification(subject=,Message=);&lt;BR /&gt;filename mail email to=('pravakar.chaudhury@xx.com' ) type='text/html'&lt;BR /&gt;subject="'LDAP Sync JOB Completed In PROD.'" ATTACH=('/projects/so/Pravakar/user_Added.html'&lt;BR /&gt;'/projects/so/Pravakar/User_Deleted.html' '/projects/so/Pravakar/User_Updated.html' &lt;STRONG&gt;&lt;FONT color="#ff0000" size="5"&gt;LRECL=9999&lt;/FONT&gt;&lt;/STRONG&gt;);&lt;BR /&gt;data _null_;&lt;BR /&gt;file mail;&lt;BR /&gt;Put "Hi Admins" ;&lt;BR /&gt;put " SAS Metadata and LDAP Sync job has 'Updated Metadata successfully. ' " ;&lt;BR /&gt;Put " Number of Users Added , " ;&lt;BR /&gt;Put " Number of Users Deleted , " ;&lt;BR /&gt;Put "Number of Users Metadata Updated . " ;&lt;BR /&gt;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;%mend Email_notification;&lt;/P&gt;
&lt;P&gt;%Email_notification;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am getting "ERROR: An attachment record was truncated.&amp;nbsp; The attachment LRECL is too small."&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used&amp;nbsp;CONTENT_TYPE='text/html' also but got same ERROR.&lt;/P&gt;
&lt;P&gt;Please suggest.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You have specified a value of 9999 for LRECL (logical record length) option for your attachments. The error indicates&amp;nbsp;that one or more of your attachments has more than 9999 characters on a logical record without encountering an end of record marker. A likely candidate cause&amp;nbsp;could be embedded graphics. I would recommend increasing the value of LRECL but if there are graphics you might spend some time trying to guess a value that works correctly. If the maximum value for LRECL=32767 does not work you need to examine your attachments carefully to find out why they are exceeding that size and address it in creating them or use a different approach to attaching the files.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 21:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-An-attachment-record-was-truncated-The-attachment-LRECL-is/m-p/450464#M29125</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-02T21:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: An attachment record was truncated.  The attachment LRECL is too small.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-An-attachment-record-was-truncated-The-attachment-LRECL-is/m-p/450564#M29135</link>
      <description>&lt;P&gt;Also note that a text file created on UNIX (html is text) will have only LF for end-of-line, which will not be recognized on Windows, as it needs CRLF.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 10:48:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-An-attachment-record-was-truncated-The-attachment-LRECL-is/m-p/450564#M29135</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-03T10:48:57Z</dc:date>
    </item>
  </channel>
</rss>

