<?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: Problems with importing data in sas in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18348#M3577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The system option is for DEFAULT lrecl.&amp;nbsp; And as stated has a limit of 32K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2011 14:21:06 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2011-09-28T14:21:06Z</dc:date>
    <item>
      <title>Problems with importing data in sas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18341#M3570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to import data in sas like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp;&amp;nbsp; E&lt;/P&gt;&lt;P&gt;x&amp;nbsp;&amp;nbsp;&amp;nbsp; y&amp;nbsp;&amp;nbsp;&amp;nbsp; z&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;/P&gt;&lt;P&gt;s1&amp;nbsp; s2&amp;nbsp;&amp;nbsp; s3&amp;nbsp;&amp;nbsp; s4&amp;nbsp;&amp;nbsp; s5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where A B C D and E are column names. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 240 columns in my dataset and the code I am using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data INFO;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;infile Attdata notab dlm='09'x dsd missover LRECL = 100000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;length A B...........E $200;&lt;/P&gt;&lt;P&gt;input A B.....E;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever I import data some of the rows of column B, C etc gets stacked below rows of A like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp;&amp;nbsp; E&lt;/P&gt;&lt;P&gt;x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;/P&gt;&lt;P&gt;s1&amp;nbsp; s2&amp;nbsp;&amp;nbsp; s3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s5&lt;/P&gt;&lt;P&gt;y&amp;nbsp;&amp;nbsp;&amp;nbsp; s4&lt;/P&gt;&lt;P&gt;z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to fix this? Do i need to do something with lrecl one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 03:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18341#M3570</guid>
      <dc:creator>Nupur20</dc:creator>
      <dc:date>2011-09-28T03:43:50Z</dc:date>
    </item>
    <item>
      <title>Problems with importing data in sas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18342#M3571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've never confronted the type of problem you are describing.&amp;nbsp; I don't think the overly large lrecl will hurt anything, but you probably should set it to be closer to what your data actually use.&amp;nbsp; Since you only have 256 $200 character fields, I would presume that somewhere between 60000 to 100000 should be more than sufficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you including the notab option in your infile statement?&amp;nbsp; That is typically only used when incorporating dde and that doesn't appear to be the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If removing the notab option doesn't end up correcting the situation, there is always the possibility that your data simply wasn't prepared correctly in the first place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 03:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18342#M3571</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-28T03:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with importing data in sas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18343#M3572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I think can be an issue with the large LRECL on some platforms.&amp;nbsp; I would suggest that you reduce the LRECL to 32767 at the maximum (this is 2**15 -1).&amp;nbsp; My only justification for this is that this is the system limit for z/OS mainframe systems and I have always been told that this is the maximum LRECL that can be used.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 12:34:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18343#M3572</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-09-28T12:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with importing data in sas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18344#M3573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't disagree, but then the informat would also have to be changed and that may not be possible.&amp;nbsp; The OP indicated having 240 $200 length columns.&amp;nbsp; However, you do raise a good point, as I don't think that the value itself can be larger than 32,767, but can have a suffix of either no suffix, k, m, g or t.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 12:50:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18344#M3573</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-28T12:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with importing data in sas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18345#M3574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;32767 is the limit of LRECL only if you want to use the automatic variable _INFILE_.&amp;nbsp; Can't have a variable larger than that.&amp;nbsp; On windows I think the limit is 1 million or so for lrecl.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program the OP posted is probably not the real program so trying to figure out the real problem will be very difficult, impossible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 13:05:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18345#M3574</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-09-28T13:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with importing data in sas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18346#M3575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There seems to be some conflicting data on this....&amp;nbsp; The INFILE documentation says that the LRECL is dependent on the operating system, while the SYSTEM OPTION documentation says the maximum is 32,767.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 13:13:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18346#M3575</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-09-28T13:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with importing data in sas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18347#M3576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There appear to be a number of conflicting statements regarding lrecl in the documentation.&amp;nbsp; e.g.,&lt;/P&gt;&lt;P&gt;The current upper limit for Logical Record Length (LRECL) when reading and writing external files on the MS Windows platforms is 1 megabyte. The upper limit will be raised to 1 gigabyte with SAS 9.2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 13:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18347#M3576</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-28T13:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with importing data in sas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18348#M3577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The system option is for DEFAULT lrecl.&amp;nbsp; And as stated has a limit of 32K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 14:21:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problems-with-importing-data-in-sas/m-p/18348#M3577</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-09-28T14:21:06Z</dc:date>
    </item>
  </channel>
</rss>

