<?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: Importing a very large .txt file in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241182#M17282</link>
    <description>What did your SAS LOG display ? Is there any WARNING or ERROR message? I also notice OUT = gc.20151108TESTE; in your code. It is not right. SAS table name can't be start with a digit .</description>
    <pubDate>Wed, 30 Dec 2015 01:25:47 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2015-12-30T01:25:47Z</dc:date>
    <item>
      <title>Importing a very large .txt file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241131#M17277</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a new user working with SAS Enterprise Guide and I have been trying to import a very large .txt file, with over 10 million rows and around 18 columns.&lt;/P&gt;&lt;P&gt;I have tried the wizard, which does not bring all the records, so I tried the proc import:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC IMPORT&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;DATAFILE='\\10.42.16.29\gc$\Full_0151108.txt'&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;OUT = gc.20151108TESTE;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;DBMS = DLM replace;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;DELIMITER = '|';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;getnames=yes;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code imports fewer lines than the wizard. I can't seem to find a way to import all of the rows! Any help appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://communities.sas.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 13:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241131#M17277</guid>
      <dc:creator>katiauk</dc:creator>
      <dc:date>2015-12-29T13:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a very large .txt file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241134#M17278</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you try following code:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data work.temp ;&lt;BR /&gt;infile '&amp;lt;file_path&amp;gt;\abc.txt'&lt;BR /&gt;lrecl = 32767 &amp;lt;or whatever is your file length&amp;gt;&lt;BR /&gt;delimiter = '|'&lt;BR /&gt;dsd&lt;BR /&gt;missover&lt;BR /&gt;firstobs = 1 /*Give this value as 1 if your text file does not contain column name. If your file contains column name this value will be 2*/;&lt;BR /&gt;;&lt;BR /&gt;attrib &amp;lt;col1&amp;gt;&amp;nbsp;length = $32;&lt;BR /&gt;attrib &amp;lt;col2&amp;gt;&amp;nbsp;length = $8;&lt;BR /&gt;attrib &amp;lt;col3&amp;gt;&amp;nbsp;length = $26;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*This will continue till col 16*/&lt;BR /&gt;&lt;BR /&gt;input &amp;lt;col1&amp;gt;&amp;nbsp;&amp;lt;col2&amp;gt;&amp;nbsp;&amp;lt;col3&amp;gt;......&amp;lt;col16&amp;gt;;&lt;BR /&gt;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 14:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241134#M17278</guid>
      <dc:creator>ad123123</dc:creator>
      <dc:date>2015-12-29T14:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a very large .txt file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241136#M17279</link>
      <description>Thanks, I have tried, but only imports the same as my code, 26357 records...</description>
      <pubDate>Tue, 29 Dec 2015 15:20:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241136#M17279</guid>
      <dc:creator>katiauk</dc:creator>
      <dc:date>2015-12-29T15:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a very large .txt file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241151#M17280</link>
      <description>When you use proc import you'll get some code in the log. Take that code and modify it to read your full file. Most likely you'll need to change the LRECL option because your lines are longer than SAS expects.</description>
      <pubDate>Tue, 29 Dec 2015 19:57:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241151#M17280</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-29T19:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a very large .txt file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241162#M17281</link>
      <description>&lt;P&gt;Try adding option&amp;nbsp;IGNOREDOSEOF to your infile statement.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 21:27:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241162#M17281</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-12-29T21:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a very large .txt file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241182#M17282</link>
      <description>What did your SAS LOG display ? Is there any WARNING or ERROR message? I also notice OUT = gc.20151108TESTE; in your code. It is not right. SAS table name can't be start with a digit .</description>
      <pubDate>Wed, 30 Dec 2015 01:25:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241182#M17282</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-12-30T01:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a very large .txt file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241187#M17283</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt; wrote:&lt;BR /&gt;What did your SAS LOG display ? Is there any WARNING or ERROR message? I also notice OUT = gc.20151108TESTE; in your code. It is not right. SAS table name can't be start with a digit .&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This was posted in SAS EG forum, and unfortunately SAS EG sets the option validvarname=any by default.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 02:04:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241187#M17283</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-30T02:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a very large .txt file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241205#M17284</link>
      <description>I see. But there are must have something like NOTE: WARNING: in LOG. That could help us to know where is the problem, if OP think importing result is not right.</description>
      <pubDate>Wed, 30 Dec 2015 07:06:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241205#M17284</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-12-30T07:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a very large .txt file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241207#M17285</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please paste few&amp;nbsp;rows after&amp;nbsp;&lt;SPAN&gt;26,357? Also, while running the code&amp;nbsp;did you find any erroneous statement in log?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 07:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241207#M17285</guid>
      <dc:creator>ad123123</dc:creator>
      <dc:date>2015-12-30T07:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a very large .txt file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241209#M17286</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Try adding option&amp;nbsp;IGNOREDOSEOF to your infile statement.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thansk PG, I did just that yesterday after I learned there were special characters on the txt file. It worked like a charm.&lt;/P&gt;&lt;P&gt;I had to get an IT guy to open the file for me because I dont have any tools to open such a big file, but when i tried to load another file and analysed the last line it imported and finding a very similar error, it was just a matter of finding what&amp;nbsp; was wrong with the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 09:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/241209#M17286</guid>
      <dc:creator>katiauk</dc:creator>
      <dc:date>2015-12-30T09:47:34Z</dc:date>
    </item>
  </channel>
</rss>

