<?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: Concatenating multiple sheets in multiple excel file using SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Concatenating-multiple-sheets-in-multiple-excel-file-using-SAS/m-p/80899#M23316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. You can do it . Using Libname + excel to operate these Sheets just like SAS datasets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2012 09:04:51 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2012-04-12T09:04:51Z</dc:date>
    <item>
      <title>Concatenating multiple sheets in multiple excel file using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Concatenating-multiple-sheets-in-multiple-excel-file-using-SAS/m-p/80898#M23315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have n number of excel sheet.&lt;/P&gt;&lt;P&gt;Each excel sheet has 2 worksheet.&lt;/P&gt;&lt;P&gt;I want to prepare master sheet where each excel sheet worksheet 1 is concatenated and put in to master excel worksheet 1 &lt;/P&gt;&lt;P&gt;and similarly each excel sheet worksheet 2 is combined and put into same master excel but worksheet 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All teh sheet has same column names and that is not a problem&lt;/P&gt;&lt;P&gt;Can any of you let me know is it possible to do this using SAS and if so can you let me know how to approach this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramanan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 06:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Concatenating-multiple-sheets-in-multiple-excel-file-using-SAS/m-p/80898#M23315</guid>
      <dc:creator>Raman</dc:creator>
      <dc:date>2012-04-12T06:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating multiple sheets in multiple excel file using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Concatenating-multiple-sheets-in-multiple-excel-file-using-SAS/m-p/80899#M23316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. You can do it . Using Libname + excel to operate these Sheets just like SAS datasets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 09:04:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Concatenating-multiple-sheets-in-multiple-excel-file-using-SAS/m-p/80899#M23316</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-04-12T09:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating multiple sheets in multiple excel file using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Concatenating-multiple-sheets-in-multiple-excel-file-using-SAS/m-p/80900#M23317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Ksharp...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is possible can you pls post the sample code&amp;nbsp; here..that would be useful for me to develop from here,,,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 10:08:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Concatenating-multiple-sheets-in-multiple-excel-file-using-SAS/m-p/80900#M23317</guid>
      <dc:creator>Raman</dc:creator>
      <dc:date>2012-04-12T10:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating multiple sheets in multiple excel file using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Concatenating-multiple-sheets-in-multiple-excel-file-using-SAS/m-p/80901#M23318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. Here is an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;libname a1 excel 'c:\a1.xls' getnames=yes;
libname a2 excel 'c:\a2.xls' getnames=yes;
data sheet1;
 set a1.'Sheet1$'n a2.'Sheet1$'n;
run;
data sheet2;
 set a1.'Sheet2$'n a2.'Sheet2$'n;
run;


proc export data=sheet1 outfile='c:\main.xls' dbms=xls ;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet='Sheet1'; putnames=yes; run;
proc export data=sheet2 outfile='c:\main.xls' dbms=xls ;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet='Sheet2'; putnames=yes; run;

libname _all_ clear;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 03:06:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Concatenating-multiple-sheets-in-multiple-excel-file-using-SAS/m-p/80901#M23318</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-04-13T03:06:09Z</dc:date>
    </item>
  </channel>
</rss>

