<?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: importing multiple xls files into a dataset in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/importing-multiple-xls-files-into-a-dataset/m-p/5025#M2021</link>
    <description>Hi:&lt;BR /&gt;
  This is not an ODS or a BASE Reporting procedure question.&lt;BR /&gt;
&lt;BR /&gt;
  This syntax works for me in SAS 9, but for more help, you should contact Tech Support.&lt;BR /&gt;
&lt;BR /&gt;
cynthia&lt;BR /&gt;
   &lt;BR /&gt;
[pre]&lt;BR /&gt;
** both sheets have the same column names;&lt;BR /&gt;
** I did not rename the sheets, so I have to use the alternate naming convention;&lt;BR /&gt;
** and treat the names of the sheets as a name literal.;&lt;BR /&gt;
    &lt;BR /&gt;
libname mywb excel "c:\temp\twosheets.xls";&lt;BR /&gt;
   &lt;BR /&gt;
proc contents data=mywb._all_;&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
data newfile;&lt;BR /&gt;
  set  mywb.'Sheet1$'n&lt;BR /&gt;
       mywb.'Sheet2$'n ;&lt;BR /&gt;
run;&lt;BR /&gt;
    &lt;BR /&gt;
proc print data=newfile;&lt;BR /&gt;
run;&lt;BR /&gt;
     &lt;BR /&gt;
libname mywb clear;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Wed, 10 Oct 2007 14:23:00 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-10-10T14:23:00Z</dc:date>
    <item>
      <title>importing multiple xls files into a dataset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/importing-multiple-xls-files-into-a-dataset/m-p/5024#M2020</link>
      <description>Hi &lt;BR /&gt;
has anyone tried to import multiple xls files into a dataset .. all the xls files are of the same format.&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
ALT</description>
      <pubDate>Wed, 10 Oct 2007 04:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/importing-multiple-xls-files-into-a-dataset/m-p/5024#M2020</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-10-10T04:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: importing multiple xls files into a dataset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/importing-multiple-xls-files-into-a-dataset/m-p/5025#M2021</link>
      <description>Hi:&lt;BR /&gt;
  This is not an ODS or a BASE Reporting procedure question.&lt;BR /&gt;
&lt;BR /&gt;
  This syntax works for me in SAS 9, but for more help, you should contact Tech Support.&lt;BR /&gt;
&lt;BR /&gt;
cynthia&lt;BR /&gt;
   &lt;BR /&gt;
[pre]&lt;BR /&gt;
** both sheets have the same column names;&lt;BR /&gt;
** I did not rename the sheets, so I have to use the alternate naming convention;&lt;BR /&gt;
** and treat the names of the sheets as a name literal.;&lt;BR /&gt;
    &lt;BR /&gt;
libname mywb excel "c:\temp\twosheets.xls";&lt;BR /&gt;
   &lt;BR /&gt;
proc contents data=mywb._all_;&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
data newfile;&lt;BR /&gt;
  set  mywb.'Sheet1$'n&lt;BR /&gt;
       mywb.'Sheet2$'n ;&lt;BR /&gt;
run;&lt;BR /&gt;
    &lt;BR /&gt;
proc print data=newfile;&lt;BR /&gt;
run;&lt;BR /&gt;
     &lt;BR /&gt;
libname mywb clear;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 10 Oct 2007 14:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/importing-multiple-xls-files-into-a-dataset/m-p/5025#M2021</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-10-10T14:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: importing multiple xls files into a dataset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/importing-multiple-xls-files-into-a-dataset/m-p/5026#M2022</link>
      <description>Hi,&lt;BR /&gt;
I wanted to try your code. &lt;BR /&gt;
&lt;BR /&gt;
But I got the message: &lt;BR /&gt;
1    libname mywb excel "D:\PRIPL\Projects\GliclTest\Final.xls";&lt;BR /&gt;
ERROR: The product with which the engine EXCEL is associated is either not licensed for your system or the product license has expired. Please&lt;BR /&gt;
       contact your SAS installation representative.&lt;BR /&gt;
&lt;BR /&gt;
Can you please tell me for what module do I have to have a license? SAS/ACCESS or something else, so that I can ask for it.&lt;BR /&gt;
&lt;BR /&gt;
I got license for these products:&lt;BR /&gt;
Base Product, SAS/STAT, SAS/GRAPH, SAS/FSP, SAS/LAB, SAS/INSIGHT.</description>
      <pubDate>Thu, 11 Oct 2007 09:20:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/importing-multiple-xls-files-into-a-dataset/m-p/5026#M2022</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-10-11T09:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: importing multiple xls files into a dataset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/importing-multiple-xls-files-into-a-dataset/m-p/5027#M2023</link>
      <description>It sounds like you need the SAS/Access for PC File formats product. Tech Support or your company (internal) SAS rep can help you with this.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 11 Oct 2007 14:53:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/importing-multiple-xls-files-into-a-dataset/m-p/5027#M2023</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-10-11T14:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: importing multiple xls files into a dataset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/importing-multiple-xls-files-into-a-dataset/m-p/5028#M2024</link>
      <description>Thanks, its easier when you know what you have to ask for.</description>
      <pubDate>Fri, 12 Oct 2007 06:17:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/importing-multiple-xls-files-into-a-dataset/m-p/5028#M2024</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-10-12T06:17:35Z</dc:date>
    </item>
  </channel>
</rss>

