<?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 Query excel to find sheet name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Query-excel-to-find-sheet-name/m-p/45477#M9403</link>
    <description>Hi All&lt;BR /&gt;
&lt;BR /&gt;
I was just wondering if there is a function or DDE query I can run to find the sheet names within Excel? E.G. Book1.xls contains Sheet1 Sheet2 Sheet3.&lt;BR /&gt;
&lt;BR /&gt;
I have a client that sends me weekly updates but always calls the sheet name something different. I have asked him not to but he continues to change it.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
    <pubDate>Thu, 08 Jul 2010 08:44:53 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-07-08T08:44:53Z</dc:date>
    <item>
      <title>Query excel to find sheet name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-excel-to-find-sheet-name/m-p/45477#M9403</link>
      <description>Hi All&lt;BR /&gt;
&lt;BR /&gt;
I was just wondering if there is a function or DDE query I can run to find the sheet names within Excel? E.G. Book1.xls contains Sheet1 Sheet2 Sheet3.&lt;BR /&gt;
&lt;BR /&gt;
I have a client that sends me weekly updates but always calls the sheet name something different. I have asked him not to but he continues to change it.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Thu, 08 Jul 2010 08:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-excel-to-find-sheet-name/m-p/45477#M9403</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-08T08:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Query excel to find sheet name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-excel-to-find-sheet-name/m-p/45478#M9404</link>
      <description>Try this&lt;BR /&gt;
&lt;BR /&gt;
libname xls excel 'c:\test.xls';&lt;BR /&gt;
&lt;BR /&gt;
data t;&lt;BR /&gt;
set sashelp.vtable;&lt;BR /&gt;
where libname = 'XLS';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
GL</description>
      <pubDate>Thu, 08 Jul 2010 13:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-excel-to-find-sheet-name/m-p/45478#M9404</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-08T13:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Query excel to find sheet name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-excel-to-find-sheet-name/m-p/45479#M9405</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Mr. Data _null_ provided very good solution a year ago:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=23307嬋"&gt;http://support.sas.com/forums/thread.jspa?messageID=23307嬋&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Oleg.</description>
      <pubDate>Thu, 08 Jul 2010 14:04:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-excel-to-find-sheet-name/m-p/45479#M9405</guid>
      <dc:creator>Oleg_L</dc:creator>
      <dc:date>2010-07-08T14:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Query excel to find sheet name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-excel-to-find-sheet-name/m-p/45480#M9406</link>
      <description>Thank you both - these are both great ways to do it! Cheers!</description>
      <pubDate>Thu, 08 Jul 2010 15:38:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-excel-to-find-sheet-name/m-p/45480#M9406</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-08T15:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Query excel to find sheet name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-excel-to-find-sheet-name/m-p/45481#M9407</link>
      <description>Neil&lt;BR /&gt;
&lt;BR /&gt;
just to dig a little into the dictionary tables, you may find the engine column of dictionary.members useful when working with more than one workbook (or libname) .... Try code:[pre] proc sql ;&lt;BR /&gt;
  create table sheets as select * from dictionary.members where engine= 'EXCEL' ;&lt;BR /&gt;
quit ;[/pre]</description>
      <pubDate>Thu, 15 Jul 2010 13:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-excel-to-find-sheet-name/m-p/45481#M9407</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-07-15T13:56:44Z</dc:date>
    </item>
  </channel>
</rss>

