<?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: Reg:Excel in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Excel/m-p/47426#M12734</link>
    <description>THe name of the excel book was Data_final and the sheet are named as sheet1,sheet2,---sheet32 .</description>
    <pubDate>Tue, 23 Jun 2009 05:39:19 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-06-23T05:39:19Z</dc:date>
    <item>
      <title>Reg:Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Excel/m-p/47424#M12732</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
i have a Excel book in that there are 50 sheets as sheet1--sheet50 now i want to create them in to datasets.Any  macros code is avaiable as i am having 20 Excelbooks like this.&lt;BR /&gt;
&lt;BR /&gt;
Any short code that import,if any macro code is available</description>
      <pubDate>Mon, 22 Jun 2009 05:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Excel/m-p/47424#M12732</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-22T05:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Excel/m-p/47425#M12733</link>
      <description>I have similar code but if can list out sheet names in one list file in excel file itself,  this code would be helpful:&lt;BR /&gt;
&lt;BR /&gt;
First part of the code creat macro variable to contain sheet names. And the second part will import each sheet using that macro variable. Does this helpful ??&lt;BR /&gt;
&lt;BR /&gt;
filename mydata DDE "Excel|C:\Documents and Settings\enugus\Desktop\[myexcel.xls]list!R2C1:R4C1" notab;&lt;BR /&gt;
&lt;BR /&gt;
data a_null_;&lt;BR /&gt;
infile mydata notab  missover dsd dlm='09'x;&lt;BR /&gt;
format dset $200.;&lt;BR /&gt;
input dset$ ;&lt;BR /&gt;
no+1;&lt;BR /&gt;
call symput('dset'||compress(put(no,best.)),compress(dset));&lt;BR /&gt;
call symput('no',compress(put(no,best.)));&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
/* create each dataset*/&lt;BR /&gt;
&lt;BR /&gt;
%macro shells(dset);&lt;BR /&gt;
%do j=1 %to &amp;amp;no.;&lt;BR /&gt;
	proc import datafile="C:\Documents and Settings\enugus\Desktop\myexcel.xls" out=data&amp;amp;j&lt;BR /&gt;
	dbms=excel replace; &lt;BR /&gt;
	sheet="&amp;amp;&amp;amp;dset&amp;amp;j";&lt;BR /&gt;
	quit;&lt;BR /&gt;
%end;&lt;BR /&gt;
%mend shells;&lt;BR /&gt;
%shells;&lt;BR /&gt;
&lt;BR /&gt;
 ~ Sukanya E</description>
      <pubDate>Mon, 22 Jun 2009 17:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Excel/m-p/47425#M12733</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-22T17:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Excel/m-p/47426#M12734</link>
      <description>THe name of the excel book was Data_final and the sheet are named as sheet1,sheet2,---sheet32 .</description>
      <pubDate>Tue, 23 Jun 2009 05:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Excel/m-p/47426#M12734</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-23T05:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Excel/m-p/47427#M12735</link>
      <description>Okay. Try the following code. Change file location and filename. Let me know if it doesn't work.&lt;BR /&gt;
&lt;BR /&gt;
%let dset=Sheet;&lt;BR /&gt;
%macro shells;&lt;BR /&gt;
%do j=1 %to 32;&lt;BR /&gt;
	proc import datafile="C:\Documents and Settings\enugus\Desktop\myexcel.xls" out=data&amp;amp;j&lt;BR /&gt;
	dbms=excel replace; &lt;BR /&gt;
	sheet="&amp;amp;dset&amp;amp;j";&lt;BR /&gt;
	quit;&lt;BR /&gt;
%end;&lt;BR /&gt;
%mend shells;&lt;BR /&gt;
&lt;BR /&gt;
~ Sukanya E&lt;BR /&gt;
%shells;</description>
      <pubDate>Tue, 23 Jun 2009 16:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Excel/m-p/47427#M12735</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-23T16:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Excel/m-p/47428#M12736</link>
      <description>just use excel libname engine, like[pre]   libname xl 'your excel.xls' ;&lt;BR /&gt;
   proc contents data= xl._all_ ;&lt;BR /&gt;
   run ; [/pre]</description>
      <pubDate>Tue, 23 Jun 2009 17:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Excel/m-p/47428#M12736</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-06-23T17:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Excel/m-p/47429#M12737</link>
      <description>Thqs sukanya it worked</description>
      <pubDate>Wed, 24 Jun 2009 11:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Excel/m-p/47429#M12737</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-24T11:36:40Z</dc:date>
    </item>
  </channel>
</rss>

