<?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: Output records longer than 32767 bytes in SAS on UNIX? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Output-records-longer-than-32767-bytes-in-SAS-on-UNIX/m-p/360344#M84822</link>
    <description>&lt;P&gt;Thank you to all three of you. &amp;nbsp;All three of you are right. &amp;nbsp;I'm going to mark &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;'s answer as the solution since it is the most specific in terms of a fix, but all three of you deserve credit, and I thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;, I was aware of the 32767 byte limit for a single variable. &amp;nbsp;I was confused in thinking that 32767 was a hard constraint for the the LRECL. &amp;nbsp;Simply setting a value for the LRECL parameter as suggested by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;&amp;nbsp;took care of that (I already had multiple 32767 length character variables set up to handle the data).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Easiest fix. &amp;nbsp;Ever. &amp;nbsp;Thank you, again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2017 00:37:59 GMT</pubDate>
    <dc:creator>jimbarbour</dc:creator>
    <dc:date>2017-05-22T00:37:59Z</dc:date>
    <item>
      <title>Output records longer than 32767 bytes in SAS on UNIX?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-records-longer-than-32767-bytes-in-SAS-on-UNIX/m-p/360311#M84801</link>
      <description>&lt;P&gt;I'm creating some plain text (ASCII) records in a SAS data step. &amp;nbsp;I'm running in a UNIX/SAS 9.4/SAS EG 7.1 environment. &amp;nbsp;When I string everything together, some of these records are over 100,000 bytes long. &amp;nbsp;UNIX can handle records of that length, but as I recall (and confirmed by what testing I have so far done), SAS has a constraint of no more than 32767 bytes in an output record.&lt;BR /&gt;&lt;BR /&gt;Is there some kind of workaround such that I can create output&amp;nbsp;records longer than 32767 bytes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Sun, 21 May 2017 15:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-records-longer-than-32767-bytes-in-SAS-on-UNIX/m-p/360311#M84801</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2017-05-21T15:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Output records longer than 32767 bytes in SAS on UNIX?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-records-longer-than-32767-bytes-in-SAS-on-UNIX/m-p/360314#M84803</link>
      <description>&lt;P&gt;The LRECL option doesn't override this? The docs say the maximum is 1G under Unix but I don't know what that actually means.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/69602/HTML/default/viewer.htm#p0upngkius4n84n17wt1u5znj2de.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostunx/69602/HTML/default/viewer.htm#p0upngkius4n84n17wt1u5znj2de.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: The SAS 'constraint' is just the default value, not an actual constraint.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 May 2017 15:46:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-records-longer-than-32767-bytes-in-SAS-on-UNIX/m-p/360314#M84803</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-21T15:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Output records longer than 32767 bytes in SAS on UNIX?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-records-longer-than-32767-bytes-in-SAS-on-UNIX/m-p/360315#M84804</link>
      <description>&lt;P&gt;On your file statement just include the lrecl option (e.g., file the_output_filename lrecl=999999;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 May 2017 15:44:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-records-longer-than-32767-bytes-in-SAS-on-UNIX/m-p/360315#M84804</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-05-21T15:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Output records longer than 32767 bytes in SAS on UNIX?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-records-longer-than-32767-bytes-in-SAS-on-UNIX/m-p/360326#M84813</link>
      <description>When you say "string together" do you mean as in one SAS variable? Then the maximum is as you say 32K.&lt;BR /&gt;Then the work around is not to string together but output your data from different variables.</description>
      <pubDate>Sun, 21 May 2017 19:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-records-longer-than-32767-bytes-in-SAS-on-UNIX/m-p/360326#M84813</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-05-21T19:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Output records longer than 32767 bytes in SAS on UNIX?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-records-longer-than-32767-bytes-in-SAS-on-UNIX/m-p/360344#M84822</link>
      <description>&lt;P&gt;Thank you to all three of you. &amp;nbsp;All three of you are right. &amp;nbsp;I'm going to mark &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;'s answer as the solution since it is the most specific in terms of a fix, but all three of you deserve credit, and I thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;, I was aware of the 32767 byte limit for a single variable. &amp;nbsp;I was confused in thinking that 32767 was a hard constraint for the the LRECL. &amp;nbsp;Simply setting a value for the LRECL parameter as suggested by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;&amp;nbsp;took care of that (I already had multiple 32767 length character variables set up to handle the data).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Easiest fix. &amp;nbsp;Ever. &amp;nbsp;Thank you, again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 00:37:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-records-longer-than-32767-bytes-in-SAS-on-UNIX/m-p/360344#M84822</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2017-05-22T00:37:59Z</dc:date>
    </item>
  </channel>
</rss>

