<?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: Import Multiple Excel Files Into Single SAS Data Set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-Multiple-Excel-Files-Into-Single-SAS-Data-Set/m-p/11000#M974</link>
    <description>Hello everyone-&lt;BR /&gt;
&lt;BR /&gt;
I'm facing much the same problem as the OP - I need to import the data from a single tab from multiple Excel 2007 files.  Our upgrade of 9.2 to phase 2 to read 2007 is in the works.&lt;BR /&gt;
&lt;BR /&gt;
I have done multiple file reads from .csv files into one dataset, but we have had problems with corrections not getting done through both source files, thus the switch to direct read.&lt;BR /&gt;
&lt;BR /&gt;
I found a macro that will read multiple sheets out of multiple Excel files, and I could take out the multiple tab section for my case.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi31/034-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/034-31.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
I will be reading only the tab 'finals' from Excel (*.xlsx) files from a specific directory, and the Excel files will not have consistent naming.&lt;BR /&gt;
&lt;BR /&gt;
Does anyone have a simpler way to do this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help!&lt;BR /&gt;
&lt;BR /&gt;
Wendy&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
LIBNAME GETIT EXCEL "test.xlsx" MIXED=NO SCAN_TIMETYPE=ANY ;&lt;BR /&gt;
  DATA NEW ; &lt;BR /&gt;
    SET GETIT.'FINALS$'n  ;&lt;BR /&gt;
  RUN ;&lt;BR /&gt;
LIBNAME GETIT CLEAR ; RUN ;</description>
    <pubDate>Mon, 27 Apr 2009 17:00:44 GMT</pubDate>
    <dc:creator>WendyT</dc:creator>
    <dc:date>2009-04-27T17:00:44Z</dc:date>
    <item>
      <title>Import Multiple Excel Files Into Single SAS Data Set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-Multiple-Excel-Files-Into-Single-SAS-Data-Set/m-p/10999#M973</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I have 20 Microsoft Excel files that I would like to import into a single SAS Data Set for analysis.  The variables within each Excel file are the same, only the observations differ,  as each Excel file represents output from a single department, and we have reports from 20 departments.  &lt;BR /&gt;
&lt;BR /&gt;
There is report header information in the first 6 rows of the Excel spreadsheet, so I would like to import the data starting at line 7, if that's possible.  &lt;BR /&gt;
&lt;BR /&gt;
Any information on the best way to accomplish this task is appreciated.  I have access to local SAS as well as having a BI implementation (with access to all SAS tools) at my disposal, so I am would be interested in hearing any and all options that may be at disposal.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Wed, 25 Mar 2009 16:41:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-Multiple-Excel-Files-Into-Single-SAS-Data-Set/m-p/10999#M973</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-25T16:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Import Multiple Excel Files Into Single SAS Data Set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-Multiple-Excel-Files-Into-Single-SAS-Data-Set/m-p/11000#M974</link>
      <description>Hello everyone-&lt;BR /&gt;
&lt;BR /&gt;
I'm facing much the same problem as the OP - I need to import the data from a single tab from multiple Excel 2007 files.  Our upgrade of 9.2 to phase 2 to read 2007 is in the works.&lt;BR /&gt;
&lt;BR /&gt;
I have done multiple file reads from .csv files into one dataset, but we have had problems with corrections not getting done through both source files, thus the switch to direct read.&lt;BR /&gt;
&lt;BR /&gt;
I found a macro that will read multiple sheets out of multiple Excel files, and I could take out the multiple tab section for my case.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi31/034-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/034-31.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
I will be reading only the tab 'finals' from Excel (*.xlsx) files from a specific directory, and the Excel files will not have consistent naming.&lt;BR /&gt;
&lt;BR /&gt;
Does anyone have a simpler way to do this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help!&lt;BR /&gt;
&lt;BR /&gt;
Wendy&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
LIBNAME GETIT EXCEL "test.xlsx" MIXED=NO SCAN_TIMETYPE=ANY ;&lt;BR /&gt;
  DATA NEW ; &lt;BR /&gt;
    SET GETIT.'FINALS$'n  ;&lt;BR /&gt;
  RUN ;&lt;BR /&gt;
LIBNAME GETIT CLEAR ; RUN ;</description>
      <pubDate>Mon, 27 Apr 2009 17:00:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-Multiple-Excel-Files-Into-Single-SAS-Data-Set/m-p/11000#M974</guid>
      <dc:creator>WendyT</dc:creator>
      <dc:date>2009-04-27T17:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Import Multiple Excel Files Into Single SAS Data Set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-Multiple-Excel-Files-Into-Single-SAS-Data-Set/m-p/11001#M975</link>
      <description>Reading the Excel files could be done with PROC IMPORT. Reading from row 7 can be accomplished, see on-line doc for PROC IMPORT. For each Excel-file, you can do SQL INSERT to a common table. If not present in the Excel-files, you might wish to add a department id column. &lt;BR /&gt;
&lt;BR /&gt;
Reading all Excel-files could be done either via a macro-loop, or by reading all files in a specific directory. There have been many previous threads in this forum discussing these topics.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Tue, 28 Apr 2009 07:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-Multiple-Excel-Files-Into-Single-SAS-Data-Set/m-p/11001#M975</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2009-04-28T07:15:17Z</dc:date>
    </item>
  </channel>
</rss>

