<?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 won't read all columns in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15903#M2861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try getnames=no; to avoid invalid variable name as the reason can't input all the variables.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2011 02:55:55 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2011-12-16T02:55:55Z</dc:date>
    <item>
      <title>proc import won't read all columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15895#M2853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a csv file with 214 columns.&amp;nbsp; SAS is only reading the the first 125.&amp;nbsp; the log says "Number of names found is greater than number of variables found."&amp;nbsp; I have imported this file numerous times using the same code I'm using today but this is the first time i've done it using version 9.3.&amp;nbsp; Am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import datafile="G:\Departments\Research\test scores\GT\1112\GIFT.csv"&lt;/P&gt;&lt;P&gt;out=mydata&lt;/P&gt;&lt;P&gt;dbms=dlm replace;&lt;/P&gt;&lt;P&gt;delimiter=',';&lt;/P&gt;&lt;P&gt;getnames=yes;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 19:07:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15895#M2853</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2011-12-15T19:07:02Z</dc:date>
    </item>
    <item>
      <title>proc import won't read all columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15896#M2854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without seeing the file one can only guess.&amp;nbsp; My first guess would be that the file begins with some incomplete records.&amp;nbsp; I would try adding a guessingrows=32000; statement and see if that corrects the situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 19:34:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15896#M2854</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-15T19:34:04Z</dc:date>
    </item>
    <item>
      <title>proc import won't read all columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15897#M2855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well.....that's interesting.&amp;nbsp; I used guessingrows and it imported 200 columns....only 14 to go.&amp;nbsp; I have 11,000 rows.&amp;nbsp; Maybe increasing the number to 50,000? ...hmmm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 19:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15897#M2855</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2011-12-15T19:44:32Z</dc:date>
    </item>
    <item>
      <title>proc import won't read all columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15898#M2856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the records span multiple rows you may have to increase the number.&amp;nbsp; The maximum is:&lt;/P&gt;&lt;P&gt;2147483647&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 19:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15898#M2856</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-15T19:49:16Z</dc:date>
    </item>
    <item>
      <title>proc import won't read all columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15899#M2857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could also be a record length issue.&amp;nbsp; You could, I think, assign the file with a filename statement and set lrecl to some very large number.&amp;nbsp; What does proc import curently show it to be set at in your log?&amp;nbsp; And, in reality, how wide is the longest record in the file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 19:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15899#M2857</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-15T19:51:38Z</dc:date>
    </item>
    <item>
      <title>proc import won't read all columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15900#M2858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; max record length is 1177.&amp;nbsp; can you use lrecl=xxxxx&amp;nbsp; in a proc import?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 19:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15900#M2858</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2011-12-15T19:55:26Z</dc:date>
    </item>
    <item>
      <title>proc import won't read all columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15901#M2859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think so, but you can always use function key F4 to get the actual code that was submitted, adust it manually, and resubmit it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 20:11:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15901#M2859</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-15T20:11:57Z</dc:date>
    </item>
    <item>
      <title>proc import won't read all columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15902#M2860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; for whatever reason, I saved the external csv file as xls and all columns imported.&amp;nbsp; It's a much bigger file but I'll let our IT director worry about that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 20:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15902#M2860</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2011-12-15T20:23:35Z</dc:date>
    </item>
    <item>
      <title>proc import won't read all columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15903#M2861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try getnames=no; to avoid invalid variable name as the reason can't input all the variables.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 02:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15903#M2861</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-12-16T02:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: proc import won't read all columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15904#M2862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have experienced this unhelpful message: it occurs for me when the number of characters in the first line of the file (variable names) in longer than ~32,000. Essentially, it reads those first 32k characters and those variables names come through to the SAS dataset correctly. SAS gives up for the other variable names and just names them var0001....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One work around for this is to -cut- up the input text file by columns using a command line tool (e.g. cut in linux) so that SAS can read in the manageable chunks, then merge those SAS datasets together. SAS doesn't hit a limit with my data in terms of having that number of variables, just a flawed proc import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. I'm using SAS 9.3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 17:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-won-t-read-all-columns/m-p/15904#M2862</guid>
      <dc:creator>DaveH</dc:creator>
      <dc:date>2013-11-14T17:31:36Z</dc:date>
    </item>
  </channel>
</rss>

