<?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 Proc import for a csv file in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506592#M1360</link>
    <description>&lt;P&gt;PROC IMPORT OUT= sample1&lt;BR /&gt;DATAFILE= "Y:\sample.csv" ;&lt;BR /&gt;DBMS=csv REPLACE;&lt;BR /&gt;SCANTEXT=YES;&lt;BR /&gt;USEDATE=YES;&lt;BR /&gt;SCANTIME=YES;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;Can i use the scan text, usedat and scantime functions&lt;/P&gt;</description>
    <pubDate>Mon, 22 Oct 2018 19:52:41 GMT</pubDate>
    <dc:creator>Ranjeeta</dc:creator>
    <dc:date>2018-10-22T19:52:41Z</dc:date>
    <item>
      <title>Proc import for a csv file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506592#M1360</link>
      <description>&lt;P&gt;PROC IMPORT OUT= sample1&lt;BR /&gt;DATAFILE= "Y:\sample.csv" ;&lt;BR /&gt;DBMS=csv REPLACE;&lt;BR /&gt;SCANTEXT=YES;&lt;BR /&gt;USEDATE=YES;&lt;BR /&gt;SCANTIME=YES;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;Can i use the scan text, usedat and scantime functions&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 19:52:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506592#M1360</guid>
      <dc:creator>Ranjeeta</dc:creator>
      <dc:date>2018-10-22T19:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import for a csv file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506593#M1361</link>
      <description>&lt;P&gt;&lt;EM&gt;Editor's Note: This 10-minute tutorial by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/152214"&gt;@Panagiotis&lt;/a&gt;&amp;nbsp;shows you how to import CSV files into SAS:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FyIuGPcYNGO4%3Flist%3DPLVV6eZFA22QwrXd6nSDU18E6XgXSMOs87&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DyIuGPcYNGO4&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FyIuGPcYNGO4%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="400" height="225" scrolling="no" title="SAS Tutorial | How to import CSV files into SAS" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, I believe those are specific to other formats. You can use GUESSINGROWS. Set it to MAX and you'll usually get better results.&lt;/P&gt;
&lt;P&gt;You do need to specify the DBMS before the semicolon I believe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT OUT= sample1 
                          DATAFILE= "Y:\sample.csv" 
                          DBMS=CSV 
                          REPLACE;
GUESSINGROWS=MAX;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n1qn5sclnu2l9dn1w61ifw8wqhts.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n1qn5sclnu2l9dn1w61ifw8wqhts.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/240770"&gt;@Ranjeeta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;PROC IMPORT OUT= sample1&lt;BR /&gt;DATAFILE= "Y:\sample.csv" ;&lt;BR /&gt;DBMS=csv REPLACE;&lt;BR /&gt;SCANTEXT=YES;&lt;BR /&gt;USEDATE=YES;&lt;BR /&gt;SCANTIME=YES;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;Can i use the scan text, usedat and scantime functions&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 21:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506593#M1361</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-03T21:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import for a csv file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506640#M1364</link>
      <description>Thankyou the file im trying to import is very large and therefore the proc import step does not work&lt;BR /&gt;&lt;BR /&gt;Would you be able to suggest how to import it another way?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Oct 2018 20:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506640#M1364</guid>
      <dc:creator>Ranjeeta</dc:creator>
      <dc:date>2018-10-22T20:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import for a csv file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506646#M1365</link>
      <description>&lt;P&gt;Not sure how that's possible. I've imported GB text files using PROC IMPORT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What exactly does 'does not work' mean? Are you getting errors? It starts and doesn't complete?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using SAS UE or a full installation of SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If SAS UE, it has RAM limitations, but you can add more (VM settings) and you can redirect your work folder to get around some of that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/240770"&gt;@Ranjeeta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thankyou the file im trying to import is very large and therefore the proc import step does not work&lt;BR /&gt;&lt;BR /&gt;Would you be able to suggest how to import it another way?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 20:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506646#M1365</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-22T20:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import for a csv file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506650#M1366</link>
      <description>Im using EG rather than base sas&lt;BR /&gt;&lt;BR /&gt;The file keeps running but there is no import completed&lt;BR /&gt;&lt;BR /&gt;The file size is 1.69 GB&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Oct 2018 20:38:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506650#M1366</guid>
      <dc:creator>Ranjeeta</dc:creator>
      <dc:date>2018-10-22T20:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import for a csv file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506656#M1367</link>
      <description>Guessingrows makes it take a long time because it scans the full file first. Try reducing it to a million records or less then. If you have a record layout reading the file using a data step would be significantly faster. I often will read the first million records, build myself a data step (check the log after proc import) and then import the data that way.</description>
      <pubDate>Mon, 22 Oct 2018 20:44:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506656#M1367</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-22T20:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import for a csv file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506690#M1378</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/240770"&gt;@Ranjeeta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Im using EG rather than base sas&lt;BR /&gt;&lt;BR /&gt;The file keeps running but there is no import completed&lt;BR /&gt;&lt;BR /&gt;The file size is 1.69 GB&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;EG doesn't matter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The acceptable values for the &amp;nbsp;option guessingrows is 1 to 2147483647&amp;nbsp;(or MAX). Unless you have very poor data values around 100000 to 1000000 likely will work. You might want to copy the data step code generated that appears in the log and save it. If you need to set the length of one of your variables larger it may be quicker to set the informat for that variable to a larger length and run the data step with the modified code instead of proc import.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 15:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506690#M1378</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-23T15:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import for a csv file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506707#M1386</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/240770"&gt;@Ranjeeta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;PROC IMPORT OUT= sample1&lt;BR /&gt;DATAFILE= "Y:\sample.csv" ;&lt;BR /&gt;DBMS=csv REPLACE;&lt;BR /&gt;SCANTEXT=YES;&lt;BR /&gt;USEDATE=YES;&lt;BR /&gt;SCANTIME=YES;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;Can i use the scan text, usedat and scantime functions&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A CSV file is just a text file. Write your own data step to read it.&lt;/P&gt;
&lt;P&gt;If you don't have any documentation then look at the top of the file and figure it out yourself.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile "Y:\sample.csv"  obs=5;
  input;
  list;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Oct 2018 23:43:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/506707#M1386</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-10-22T23:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import for a csv file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/507737#M1506</link>
      <description>&lt;P&gt;Thankyou The proc import worked for one of the files it took 20 minutes but I believe there is a difference in speen in base sas vs SAS EG&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 13:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/507737#M1506</guid>
      <dc:creator>Ranjeeta</dc:creator>
      <dc:date>2018-10-26T13:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import for a csv file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/507817#M1522</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/240770"&gt;@Ranjeeta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thankyou The proc import worked for one of the files it took 20 minutes but I believe there is a difference in speen in base sas vs SAS EG&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes there is a speed difference because somewhere EG has to use the actual SAS engines. EG is basically just a front end. So there is a little extra time in anything just for EG to talk to the engines. In many places you have EG using SAS on a server, so server performance issues may cause additional delays such as network performance, your user&amp;nbsp;share of processing time or space limits and such.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have to routinely deal with files of this size you might talk to your SAS Admin about the settings for your access to see if there are settings that could be adjusted for better performance. Perhaps the general IT staff, if any, need to get involved about other system constraints.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 16:47:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-import-for-a-csv-file/m-p/507817#M1522</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-26T16:47:06Z</dc:date>
    </item>
  </channel>
</rss>

