<?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 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/245590#M17455</link>
    <description>&lt;P&gt;I have a large, multi-GB .txt file to import into SAS. (my SAS is running on a remote server)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, I FTP transferred my .txt file to the server itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next, I launched the Import Wizard from my local E.G. client, but whats happening is &amp;nbsp; "Retrieving Source File" - which is silly because the data is already there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I import the .txt file most efficiently? I am aware of proc IMPORT but then I lose the ability to review the datatypes during the EG wizard.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Jan 2016 01:32:18 GMT</pubDate>
    <dc:creator>JBerry</dc:creator>
    <dc:date>2016-01-23T01:32:18Z</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/245590#M17455</link>
      <description>&lt;P&gt;I have a large, multi-GB .txt file to import into SAS. (my SAS is running on a remote server)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, I FTP transferred my .txt file to the server itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next, I launched the Import Wizard from my local E.G. client, but whats happening is &amp;nbsp; "Retrieving Source File" - which is silly because the data is already there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I import the .txt file most efficiently? I am aware of proc IMPORT but then I lose the ability to review the datatypes during the EG wizard.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 01:32:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/245590#M17455</guid>
      <dc:creator>JBerry</dc:creator>
      <dc:date>2016-01-23T01:32:18Z</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/245602#M17456</link>
      <description>&lt;P&gt;Is this a one time process?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, it's best to use a data step to read the file, but that means explicitly listing fields/types.&lt;/P&gt;
&lt;P&gt;The 'lazy trick' is to use proc import, most likely with option obs= set to generate the code.&lt;/P&gt;
&lt;P&gt;Take the code from the log, review and customize the code as desired and run from there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;option obs=100000;&lt;/P&gt;
&lt;P&gt;proc import ...&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Grab code from log and you're good to go. You can use ALT+Click to select code without log numbers.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Press the ALT key and at the same time select the top left-hand corner of your log in the column just to the right of your line numbers by clicking with your mouse button. Now drag the mouse down to the bottom right-hand corner of your log. You should now have highlighted your SAS program without the line numbers.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Courtesy of&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/How-to-remove-log-numbers/td-p/21489" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/How-to-remove-log-numbers/td-p/21489&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 04:22:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/245602#M17456</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-23T04:22:34Z</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/245604#M17457</link>
      <description>&lt;P&gt;Still a pain - that the client needs to bring back all the data like that - &amp;nbsp;but your "lazy" trick is incredible and I very much appreciate it!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The added bonus is the Alt+Click trick, which I am sure will serve me well many times in my career.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 04:30:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/245604#M17457</guid>
      <dc:creator>JBerry</dc:creator>
      <dc:date>2016-01-23T04:30:58Z</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/245606#M17458</link>
      <description>&lt;P&gt;If your lucky &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; your client may have provided a data transfer agreement with the data specifications. If so, I usually find a way to create my informat/input statements from that. There's a variety of ways - usually I use Excel to build it since I can customize and make it semi-automated manner.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 04:43:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/245606#M17458</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-23T04:43:01Z</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/245873#M17462</link>
      <description>No such luck. : (   What started off as a favor has turned into a full blown project.  Thanks for the pro tips!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Jan 2016 13:53:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-a-very-large-txt-file/m-p/245873#M17462</guid>
      <dc:creator>JBerry</dc:creator>
      <dc:date>2016-01-25T13:53:35Z</dc:date>
    </item>
  </channel>
</rss>

