<?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: Exceeding the INPUT statement limits? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113659#M23434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then set LRECL to that or larger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2013 19:28:42 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2013-01-03T19:28:42Z</dc:date>
    <item>
      <title>Exceeding the INPUT statement limits?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113651#M23426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to read in a comma delimited ascii file (CSV) that has variable names in row 1 using the INFILE and INPUT statements within a DATA STEP. The problem is that the length of row 1 exceeds the limit of the input statement (something like 32,767 characters). Does anyone have a strategy to work around that limit? Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 16:48:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113651#M23426</guid>
      <dc:creator>gkeeler</dc:creator>
      <dc:date>2013-01-03T16:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exceeding the INPUT statement limits?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113652#M23427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LRECL can be MUCH larger than 32767 depending on the OS 1gig or more I can't remember.&amp;nbsp; You won't be able to use _INFILE_ as a variable but then you shouldn't need to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Show your work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 17:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113652#M23427</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-01-03T17:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Exceeding the INPUT statement limits?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113653#M23428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you really need to read the first row?&amp;nbsp; Why not just start with the second row:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;infile source firstobs=2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 18:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113653#M23428</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-01-03T18:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exceeding the INPUT statement limits?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113654#M23429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;LRECL=n | nK | nM | nG | nT | hexX | MIN | MAX&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax Description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n &lt;/P&gt;&lt;P&gt;specifies the logical record length in multiples of 1 (bytes); 1,024 (kilobytes); 1,048,576 (megabytes); 1,073,741,824 (gigabytes); or 1,099,511,627,776 (terabytes). For example, a value of 32 specifies 32 bytes, and a value of 32k specifies 32,767 bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default: 256 &lt;/P&gt;&lt;P&gt;Range: 1-32767 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hexX &lt;/P&gt;&lt;P&gt;specifies the logical record length as a hexadecimal value. You must specify the value beginning with a number (0-9), followed by an X. For example, the value 2dx sets the logical record length to 45 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MIN &lt;/P&gt;&lt;P&gt;specifies a logical record length of 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX &lt;/P&gt;&lt;P&gt;specifies a logical record length of 32,767.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 18:41:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113654#M23429</guid>
      <dc:creator>gkeeler</dc:creator>
      <dc:date>2013-01-03T18:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exceeding the INPUT statement limits?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113655#M23430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the first row because it contains the variable names. The dataset would be of limited value if the variables were named col1-col4683. It would be possible to rename the variables by hand, but I would rather have an automated work around. I have at least 60 datasets to convert to SAS, with many more to come. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 18:49:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113655#M23430</guid>
      <dc:creator>gkeeler</dc:creator>
      <dc:date>2013-01-03T18:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exceeding the INPUT statement limits?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113656#M23431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So what did you use?&amp;nbsp; Do you know the length of the longest record?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how about somthing like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename FT44F001 "&amp;lt;path&amp;gt;" lrecl=1M;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need a value that is a least as long as the longest record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 19:11:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113656#M23431</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-01-03T19:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Exceeding the INPUT statement limits?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113657#M23432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are going to use the names from the first row you will need a two step process.&amp;nbsp; 1) to read the names 2) gen some code to use the names.&amp;nbsp; What about TYPE and INFORMAT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 19:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113657#M23432</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-01-03T19:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Exceeding the INPUT statement limits?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113658#M23433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One example of a row 1 that is too long is one with a width equal to 35,265 characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 19:21:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113658#M23433</guid>
      <dc:creator>gkeeler</dc:creator>
      <dc:date>2013-01-03T19:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Exceeding the INPUT statement limits?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113659#M23434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then set LRECL to that or larger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 19:28:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113659#M23434</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-01-03T19:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exceeding the INPUT statement limits?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113660#M23435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS should have no trouble reading a line with more than 32K characters in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you be more specific about what you are actually running and the error message you are getting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 19:31:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113660#M23435</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-01-03T19:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exceeding the INPUT statement limits?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113661#M23436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even though my SAS installation SAS/BASE documentation says&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LRECL=MAX specifies a logical record length of 32,767. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LRECL Range = 1 - 32,767&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the online SAS for Windows companion states&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LRECL=&lt;SPAN class="userSuppliedValue"&gt;record-length&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; specifies the record length (in bytes). Under Windows, the default is 256.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The value of &lt;SPAN class="userSuppliedValue"&gt;record-length&lt;/SPAN&gt; can range from 1 to 1,073,741,823 (1 gigabyte). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The moral of the story is:&lt;/P&gt;&lt;P&gt;- Don't trust the installed SAS/BASE documentation to be complete. I thought&lt;/P&gt;&lt;P&gt;&amp;nbsp; that they had hot links to specific host documentation where it was needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Must be a hit-or-miss feature. Maybe that could be an item in the next SASware Ballot.&lt;/P&gt;&lt;P&gt;- Make sure to check the section entitled 'Using SAS Software in Your Operating Environment'&lt;/P&gt;&lt;P&gt;&amp;nbsp; or the online (regularly updated) 'SAS 9.3 Companion for Windows'&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/63047/HTML/default/viewer.htm#titlepage.htm" title="http://support.sas.com/documentation/cdl/en/hostwin/63047/HTML/default/viewer.htm#titlepage.htm"&gt;&amp;nbsp; SAS(R) 9.3 Companion for Windows&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; before committing to a specific programming solution.&lt;/P&gt;&lt;P&gt;- Use the SAS Commuties forums like this one when you're stuck. Provide as much&lt;/P&gt;&lt;P&gt;&amp;nbsp; documentation as you can for questions and answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="p142w8cv5qjeoun1oqz8qcxbz2y8"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 19:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113661#M23436</guid>
      <dc:creator>gkeeler</dc:creator>
      <dc:date>2013-01-08T19:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exceeding the INPUT statement limits?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113662#M23437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="808520" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;: Additional moral: pay close attention to what you are reading.&amp;nbsp; For some probably outdated reason the SAS system option for lrecl will be set to 32767 when one chooses MAX and, in fact, can NOT be set above that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, as you discovered, the infile lrecl option can be set to be much higher.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 20:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exceeding-the-INPUT-statement-limits/m-p/113662#M23437</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-01-08T20:24:37Z</dc:date>
    </item>
  </channel>
</rss>

