<?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 Re: Proc import stops reading file before last record in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-stops-reading-file-before-last-record/m-p/422883#M103981</link>
    <description>I wouldn't bother with using PROC IMPORT if you can get the LIBNAME engine to work.&lt;BR /&gt;21 character member name shouldn't be a problem since SAS names can be up to 32 characters long, unless you have option VALIDVARNAME=V6 set.&lt;BR /&gt;You might have made other changes to the file when you opened it to change the sheetname.&lt;BR /&gt;</description>
    <pubDate>Wed, 20 Dec 2017 21:07:04 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2017-12-20T21:07:04Z</dc:date>
    <item>
      <title>Proc import stops reading file before last record</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-stops-reading-file-before-last-record/m-p/422863#M103975</link>
      <description>&lt;P&gt;My xlsx file has 4650 records and 7 columns.&amp;nbsp; Proc import only reads in 4500 records.&amp;nbsp; When I run the file through stat transfer and create a new file the new file will import correctly. SAS version 9.3.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 19:56:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-stops-reading-file-before-last-record/m-p/422863#M103975</guid>
      <dc:creator>metro</dc:creator>
      <dc:date>2017-12-20T19:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import stops reading file before last record</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-stops-reading-file-before-last-record/m-p/422867#M103976</link>
      <description>&lt;P&gt;Works fine for me.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;1294  libname x xlsx "&amp;amp;path\test file.xlsx";
NOTE: Libref X was successfully assigned as follows:
      Engine:        XLSX
      Physical Name: C:\Downloads\test file.xlsx
1295  proc copy inlib=x outlib=work;
1296  run;

NOTE: Copying X.TEST to WORK.TEST (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: The import data set has 4560 observations and 7 variables.
NOTE: There were 4560 observations read from the data set X.TEST.
NOTE: The data set WORK.TEST has 4560 observations and 7 variables.
&lt;/PRE&gt;
&lt;P&gt;How did you try to read it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 20:05:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-stops-reading-file-before-last-record/m-p/422867#M103976</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-12-20T20:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import stops reading file before last record</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-stops-reading-file-before-last-record/m-p/422872#M103978</link>
      <description>I used proc import. I renamed the sheet to test before I uploaded and now I get all 4560 records. However, the one I was originally using had a sheet name with &amp;gt;21 characters and that one still stops importing at 4500 records.  Looks like the length of the sheetname is the problem.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Dec 2017 20:53:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-stops-reading-file-before-last-record/m-p/422872#M103978</guid>
      <dc:creator>metro</dc:creator>
      <dc:date>2017-12-20T20:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import stops reading file before last record</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-stops-reading-file-before-last-record/m-p/422883#M103981</link>
      <description>I wouldn't bother with using PROC IMPORT if you can get the LIBNAME engine to work.&lt;BR /&gt;21 character member name shouldn't be a problem since SAS names can be up to 32 characters long, unless you have option VALIDVARNAME=V6 set.&lt;BR /&gt;You might have made other changes to the file when you opened it to change the sheetname.&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Dec 2017 21:07:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-stops-reading-file-before-last-record/m-p/422883#M103981</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-12-20T21:07:04Z</dc:date>
    </item>
  </channel>
</rss>

