<?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 SAS University proc import issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-University-proc-import-issue/m-p/183507#M265385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am struggling with this oft-asked question about importing a .csv into SAS University.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;infile "/folders/myfolders/book.csv";&lt;/P&gt;&lt;P&gt;input;&lt;/P&gt;&lt;P&gt;put _infile_;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT, this fails miserably!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import &lt;/P&gt;&lt;P&gt;DATAFILE="/folders/myfolders/book.csv"&lt;/P&gt;&lt;P&gt;OUT = book&lt;/P&gt;&lt;P&gt;DBMS = CSV&lt;/P&gt;&lt;P&gt;GETNAMES = yes;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote2_1424963846366" style="color: #0000ff;"&gt; NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 44 DATAFILE="/folders/myfolders/book.csv"&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 45 OUT = book&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 46 DBMS = CSV&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 47 GETNAMES = yes;&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; ________&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; 22&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; 76&lt;/P&gt;&lt;P class="sasError" id="sasLogError1_1424963846366" style="color: #ff0000;"&gt; ERROR 22-322: Syntax error, expecting one of the following: ;, DATAFILE, DATATABLE, DBMS, DEBUG, FILE, OUT, REPLACE, TABLE, &lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; _DEBUG_.&amp;nbsp; &lt;/P&gt;&lt;P class="sasError" id="sasLogError2_1424963846366" style="color: #ff0000;"&gt; ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&lt;SPAN style="color: #000000;"&gt;Any help will be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&lt;SPAN style="color: #000000;"&gt;Let's Go Sioux!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2015 15:18:40 GMT</pubDate>
    <dc:creator>sioux88</dc:creator>
    <dc:date>2015-02-26T15:18:40Z</dc:date>
    <item>
      <title>SAS University proc import issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-University-proc-import-issue/m-p/183507#M265385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am struggling with this oft-asked question about importing a .csv into SAS University.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;infile "/folders/myfolders/book.csv";&lt;/P&gt;&lt;P&gt;input;&lt;/P&gt;&lt;P&gt;put _infile_;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT, this fails miserably!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import &lt;/P&gt;&lt;P&gt;DATAFILE="/folders/myfolders/book.csv"&lt;/P&gt;&lt;P&gt;OUT = book&lt;/P&gt;&lt;P&gt;DBMS = CSV&lt;/P&gt;&lt;P&gt;GETNAMES = yes;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote2_1424963846366" style="color: #0000ff;"&gt; NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 44 DATAFILE="/folders/myfolders/book.csv"&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 45 OUT = book&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 46 DBMS = CSV&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 47 GETNAMES = yes;&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; ________&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; 22&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; 76&lt;/P&gt;&lt;P class="sasError" id="sasLogError1_1424963846366" style="color: #ff0000;"&gt; ERROR 22-322: Syntax error, expecting one of the following: ;, DATAFILE, DATATABLE, DBMS, DEBUG, FILE, OUT, REPLACE, TABLE, &lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; _DEBUG_.&amp;nbsp; &lt;/P&gt;&lt;P class="sasError" id="sasLogError2_1424963846366" style="color: #ff0000;"&gt; ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&lt;SPAN style="color: #000000;"&gt;Any help will be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&lt;SPAN style="color: #000000;"&gt;Let's Go Sioux!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 15:18:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-University-proc-import-issue/m-p/183507#M265385</guid>
      <dc:creator>sioux88</dc:creator>
      <dc:date>2015-02-26T15:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS University proc import issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-University-proc-import-issue/m-p/183508#M265386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two things jump to view, firstly you have not finished the proc statement with a semicolon, second need quotes around yes:&lt;/P&gt;&lt;P&gt;proc import datafile="xyz" out=book dbms=csv;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; getnames="yes";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, why would you want to use import if the datastep works, you have more control, i.e. don't leave it to import to "guess" what you want to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 15:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-University-proc-import-issue/m-p/183508#M265386</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-02-26T15:35:08Z</dc:date>
    </item>
  </channel>
</rss>

