<?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 Import all Excel Worksheets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28872#M5383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By using dictionary.members instead of dictionary.tables, it's now lightning fast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wooo.&amp;nbsp; Thanks everyone!&amp;nbsp; :smileygrin:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2011 18:00:46 GMT</pubDate>
    <dc:creator>wcpatton</dc:creator>
    <dc:date>2011-07-14T18:00:46Z</dc:date>
    <item>
      <title>Import all Excel Worksheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28864#M5375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I am looking for a way to import all of the worksheets in an excel book without specifying the names of those sheets.&amp;nbsp; Ideally, they would all be then joined to make one large dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imagine there has to be a macro that can handle this....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 14:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28864#M5375</guid>
      <dc:creator>wcpatton</dc:creator>
      <dc:date>2011-07-11T14:22:11Z</dc:date>
    </item>
    <item>
      <title>Import all Excel Worksheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28865#M5376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; no macro required, if you are running SAS on windows platforms with SAS/Access for PC File Formats available&lt;/P&gt;&lt;P&gt;Just a libname statement, like&lt;/P&gt;&lt;P&gt;libname myxl excel 'path/workbook.xls' ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try &lt;/P&gt;&lt;P&gt;proc contents data= myxl._all_ ; run ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 14:29:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28865#M5376</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-07-11T14:29:50Z</dc:date>
    </item>
    <item>
      <title>Import all Excel Worksheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28866#M5377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see how I would join those into one file then.&amp;nbsp; The myxl folder contains each of the worksheets, but then how to join them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a function to set all files in a directory together?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 14:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28866#M5377</guid>
      <dc:creator>wcpatton</dc:creator>
      <dc:date>2011-07-11T14:36:56Z</dc:date>
    </item>
    <item>
      <title>Import all Excel Worksheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28867#M5378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry wcpatton, I didn't expect you wanted all sheets in a single table;&lt;/P&gt;&lt;P&gt; once you have the names in a macro variable, like &amp;amp;xlNames (created with code like)&lt;/P&gt;&lt;P&gt;proc sql noprint ;&lt;/P&gt;&lt;P&gt;select cats( "myxl.'", memname, "'n" ) into : xlNames separated by ' '&lt;/P&gt;&lt;P&gt;from dictionary.tables&lt;/P&gt;&lt;P&gt;where libname = 'MYXL' and Nvar &amp;gt; 0 &lt;/P&gt;&lt;P&gt;order by memname ;&lt;/P&gt;&lt;P&gt;%put found &amp;amp;sqlobs worksheets with columns in MYXL ;&lt;/P&gt;&lt;P&gt;quit ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just use that in code like:&lt;/P&gt;&lt;P&gt;data together ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length from_sheet sht $50 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set &amp;amp;xlNames indsname= sht ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from_sheet = sht ;&lt;/P&gt;&lt;P&gt;run ; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 16:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28867#M5378</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-07-11T16:12:41Z</dc:date>
    </item>
    <item>
      <title>Import all Excel Worksheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28868#M5379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works great, brilliant piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any way to speed up the first step, though?&amp;nbsp; Is there any thing that would stop the process once it has identified the sheet name?&amp;nbsp; It runs for a while on these large workbooks, like it is reading the whole sheet into memory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 15:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28868#M5379</guid>
      <dc:creator>wcpatton</dc:creator>
      <dc:date>2011-07-14T15:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Import all Excel Worksheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28869#M5380</link>
      <description>&lt;P&gt;Here is an alternative program to find the sheet names that you can use to compare performance.&amp;nbsp; If you have to work with EXCEL files alot you may want to learn a bit about Office Automation and this is a good a place to start as any.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt; workbook &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;"path to workbook.xls"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: navy; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt; work.sheets;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt; path script filevar command $&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;256&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp; path&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = pathname(&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'WORKBOOK'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp; script&amp;nbsp;&amp;nbsp; = catx(&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'\'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;,pathname(&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'WORK'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'SHEETNAMESS.vbs'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp; filevar&amp;nbsp; = script;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;/* write the script */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt; dummy1 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;filevar&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;=filevar;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'Const '&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt; path=:&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;$quote256.&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'Set objExcel = CreateObject("Excel.Application")'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'With objExcel'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;3&lt;/STRONG&gt; &lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'.Visible = False'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;3&lt;/STRONG&gt; &lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'.DisplayAlerts = False'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;3&lt;/STRONG&gt; &lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'Set objWorkbook&amp;nbsp; = .Workbooks.Open(path)'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;3&lt;/STRONG&gt; &lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'Set colSheets = .Worksheets'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;3&lt;/STRONG&gt; &lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'For Each objSheet In colSheets'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;6&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'WScript.echo objsheet.name'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;6&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'Next'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;3&lt;/STRONG&gt; &lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'.Application.Quit'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;3&lt;/STRONG&gt; &lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'End With'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;/* close the script file by opening another, not used */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp; filevar = catx(&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'\'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;,pathname(&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'WORK'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'DUMMY.vbs'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt; dummy1 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;filevar&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;=filevar;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;/* look at the script, not necessary but may be useful */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt; dummy2 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;filevar&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;=script &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;=eof;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt; _n_ = &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;1&lt;/STRONG&gt; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;by&lt;/SPAN&gt; &lt;STRONG style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;1&lt;/STRONG&gt; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;while&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;(not eof);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;putlog&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt; _n_ &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;z3.&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt; +&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt; _infile_;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;/* call the script */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp; command = catx(&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;'cscript //nologo'&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;,quote(strip(script)));&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt; dummy3 pipe &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;filevar&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;=command &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;=eof &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;=l;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;do&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;while&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;(not eof);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt; sheet &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;$varying256.&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt; l;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;putlog&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt; _infile_;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;stop&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 23:42:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28869#M5380</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2018-06-20T23:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Import all Excel Worksheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28870#M5381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One should always take note of data_null's suggestions as they almost always bring expedient solutions, but I don't understand why the first part of Peter's code would take long.&amp;nbsp; It is only reading file names from dictionary.tables.&amp;nbsp; It never even accesses the spreadsheets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 17:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28870#M5381</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-07-14T17:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Import all Excel Worksheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28871#M5382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm pretty sure the XL libname engine requires some interaction with EXCEL, but I don't know how it works.&amp;nbsp; The information needed, in the case the MEMNAME aka SHEET Name, does not exist until is is asked for and the XL engine has to go get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the VBSCRIPT methods is not exactly speedy it has to open EXCEL load the workbook, etc...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 17:43:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28871#M5382</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-07-14T17:43:03Z</dc:date>
    </item>
    <item>
      <title>Import all Excel Worksheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28872#M5383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By using dictionary.members instead of dictionary.tables, it's now lightning fast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wooo.&amp;nbsp; Thanks everyone!&amp;nbsp; :smileygrin:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 18:00:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-all-Excel-Worksheets/m-p/28872#M5383</guid>
      <dc:creator>wcpatton</dc:creator>
      <dc:date>2011-07-14T18:00:46Z</dc:date>
    </item>
  </channel>
</rss>

