<?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: Read in all records from Excel file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Read-in-all-records-from-Excel-file/m-p/838685#M331603</link>
    <description>Check the excel files for named ranges that are the same as the sheetname but not the full selection of data.</description>
    <pubDate>Fri, 14 Oct 2022 17:46:57 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-10-14T17:46:57Z</dc:date>
    <item>
      <title>Read in all records from Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-in-all-records-from-Excel-file/m-p/838668#M331590</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using a very basic libname xlsx step to read in a set of Excel files:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let datafile = mypath\myfile.myext&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname xl xlsx "&amp;amp;Datafile.";&lt;/P&gt;
&lt;P&gt;%let keeplist = v1 v2 'Variable 3'n 'Variable 4'n;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data mydata;&lt;BR /&gt;length v1 $20. v2 $500. 'Variable 3'n 'Variable 4'n $1000. ;&lt;BR /&gt;&lt;BR /&gt;set xl.mysheet (keep=&amp;amp;keeplist.);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname xl clear;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This reads each file in successfully with no errors in the log. However, I noticed that rows from some Excel file are not being read in. I don't notice any level of missingness on the first row not being read in, so I'm not sure what's going on here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 16:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-in-all-records-from-Excel-file/m-p/838668#M331590</guid>
      <dc:creator>Walternate</dc:creator>
      <dc:date>2022-10-14T16:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read in all records from Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-in-all-records-from-Excel-file/m-p/838682#M331601</link>
      <description>&lt;P&gt;You should provide an example of file that demonstrates that behavior.&lt;/P&gt;
&lt;P&gt;Tell us which row(s) are not read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I realize that your source files may be sensitive. I am not asking for a file containing sensitive information but a file that shows the behavior. That may mean making a copy and replacing sensitive fields with values like XXXXX or 1111 (if the column should be numeric).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 17:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-in-all-records-from-Excel-file/m-p/838682#M331601</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-14T17:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Read in all records from Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-in-all-records-from-Excel-file/m-p/838685#M331603</link>
      <description>Check the excel files for named ranges that are the same as the sheetname but not the full selection of data.</description>
      <pubDate>Fri, 14 Oct 2022 17:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-in-all-records-from-Excel-file/m-p/838685#M331603</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-10-14T17:46:57Z</dc:date>
    </item>
  </channel>
</rss>

