<?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 csv file truncating last column in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-for-csv-file-truncating-last-column/m-p/54867#M15226</link>
    <description>Greetings,&lt;BR /&gt;
&lt;BR /&gt;
I have 6 csv files containing 14 columns that I'm combining into one sas dataset.&lt;BR /&gt;
If I do files 1-5, all 14 columns are picked up.  If I do all 6, I get the following message: "Number of names found is greater than number of variables found."  My resulting dataset only contains 13 columns.  The last column is dropped.&lt;BR /&gt;
&lt;BR /&gt;
I've isolated the problem to the 6th file but cannot figure out what this message means.  All 6 files have 14 columns and they are all spelled the same.  I've searched this site but haven't found anything that details the message.&lt;BR /&gt;
&lt;BR /&gt;
This is my code&lt;BR /&gt;
&lt;BR /&gt;
PROC IMPORT OUT= testcsv.csvtest&lt;BR /&gt;
            DATAFILE= "E:\folder1\csv_1.csv"&lt;BR /&gt;
            DATAFILE= "E:\folder1\csv_2.csv"&lt;BR /&gt;
            DATAFILE= "E:\folder1\csv_3.csv"&lt;BR /&gt;
            DATAFILE= "E:\folder1\csv_4.csv"&lt;BR /&gt;
            DATAFILE= "E:\folder1\csv_5.csv"&lt;BR /&gt;
            DATAFILE= "E:\folder1\csv_6.csv"&lt;BR /&gt;
            DBMS=CSV REPLACE;&lt;BR /&gt;
     GETNAMES=YES;&lt;BR /&gt;
     DATAROW=2; &lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
Thanks for looking.</description>
    <pubDate>Wed, 15 Jul 2009 17:36:51 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-07-15T17:36:51Z</dc:date>
    <item>
      <title>PROC Import for csv file truncating last column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-for-csv-file-truncating-last-column/m-p/54867#M15226</link>
      <description>Greetings,&lt;BR /&gt;
&lt;BR /&gt;
I have 6 csv files containing 14 columns that I'm combining into one sas dataset.&lt;BR /&gt;
If I do files 1-5, all 14 columns are picked up.  If I do all 6, I get the following message: "Number of names found is greater than number of variables found."  My resulting dataset only contains 13 columns.  The last column is dropped.&lt;BR /&gt;
&lt;BR /&gt;
I've isolated the problem to the 6th file but cannot figure out what this message means.  All 6 files have 14 columns and they are all spelled the same.  I've searched this site but haven't found anything that details the message.&lt;BR /&gt;
&lt;BR /&gt;
This is my code&lt;BR /&gt;
&lt;BR /&gt;
PROC IMPORT OUT= testcsv.csvtest&lt;BR /&gt;
            DATAFILE= "E:\folder1\csv_1.csv"&lt;BR /&gt;
            DATAFILE= "E:\folder1\csv_2.csv"&lt;BR /&gt;
            DATAFILE= "E:\folder1\csv_3.csv"&lt;BR /&gt;
            DATAFILE= "E:\folder1\csv_4.csv"&lt;BR /&gt;
            DATAFILE= "E:\folder1\csv_5.csv"&lt;BR /&gt;
            DATAFILE= "E:\folder1\csv_6.csv"&lt;BR /&gt;
            DBMS=CSV REPLACE;&lt;BR /&gt;
     GETNAMES=YES;&lt;BR /&gt;
     DATAROW=2; &lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
Thanks for looking.</description>
      <pubDate>Wed, 15 Jul 2009 17:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-for-csv-file-truncating-last-column/m-p/54867#M15226</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-15T17:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Import for csv file truncating last column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-for-csv-file-truncating-last-column/m-p/54868#M15227</link>
      <description>Some things to try.&lt;BR /&gt;
&lt;BR /&gt;
-- just bring in the 6th file.&lt;BR /&gt;
-- look at the 6th file with a hex editor.  There may be something in there that you can't see with notepad or Word.&lt;BR /&gt;
-- along the lines of hidden characters, I've had users embed a &lt;CR&gt; in the middle of a column and it messed up lots of stuff.&lt;BR /&gt;
-- did the 6th file come from a Unix source; you could be missing a part of the end-of-line character.&lt;BR /&gt;
-- it could be the very last row in the 5th file.  If it is missing the last field, that might be it.&lt;/CR&gt;</description>
      <pubDate>Thu, 16 Jul 2009 18:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-for-csv-file-truncating-last-column/m-p/54868#M15227</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-07-16T18:02:00Z</dc:date>
    </item>
  </channel>
</rss>

