<?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 Excel Tabs to Different Datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-Tabs-to-Different-Datasets/m-p/619224#M181753</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is not regarding license issue,i want to import different tabs to different datasets using code&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2020 16:49:33 GMT</pubDate>
    <dc:creator>sg_kr</dc:creator>
    <dc:date>2020-01-22T16:49:33Z</dc:date>
    <item>
      <title>Importing Excel Tabs to Different Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-Tabs-to-Different-Datasets/m-p/619068#M181687</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an excel with multiple number of sheets in that, now i need a macro to import each sheet in excel to each dataset with sheet name.&lt;/P&gt;&lt;P&gt;i cannot give the sheet name manually every time it needs to be dynamic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 09:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-Tabs-to-Different-Datasets/m-p/619068#M181687</guid>
      <dc:creator>sg_kr</dc:creator>
      <dc:date>2020-01-22T09:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel Tabs to Different Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-Tabs-to-Different-Datasets/m-p/619072#M181690</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215304"&gt;@sg_kr&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Assuming you have the adequate licence, you can use the EXCEL engine in a LIBNAME statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME mylib XLSX "your_path/you_excel_file.xlsx";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jan 2020 09:34:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-Tabs-to-Different-Datasets/m-p/619072#M181690</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-22T09:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel Tabs to Different Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-Tabs-to-Different-Datasets/m-p/619224#M181753</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is not regarding license issue,i want to import different tabs to different datasets using code&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 16:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-Tabs-to-Different-Datasets/m-p/619224#M181753</guid>
      <dc:creator>sg_kr</dc:creator>
      <dc:date>2020-01-22T16:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel Tabs to Different Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-Tabs-to-Different-Datasets/m-p/619311#M181789</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215304"&gt;@sg_kr&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for your response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is not regarding license issue,i want to import different tabs to different datasets using code&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The LIBNAME approach that &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292097"&gt;@ed_sas_member&lt;/a&gt;&amp;nbsp;demonstrates requires that the SAS/Access Interface&amp;nbsp;to PC Files module be available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see if you have that module installed and ready to go with this code:&lt;/P&gt;
&lt;PRE&gt;Proc product_status;
run;&lt;/PRE&gt;
&lt;P&gt;When you run the code then the LOG will contain something like:&lt;/P&gt;
&lt;PRE&gt;For SAS/ACCESS Interface to PC Files ...
   Custom version information: 9.4_M4
&lt;/PRE&gt;
&lt;P&gt;If you do not see the Access Interface to PC Files you can see if you have the product licensed but not installed with&lt;/P&gt;
&lt;PRE&gt;Proc setinit;
run;&lt;/PRE&gt;
&lt;P&gt;If the log shows&lt;/P&gt;
&lt;PRE&gt;---SAS/ACCESS Interface to PC Files
&lt;/PRE&gt;
&lt;P&gt;then it is licensed but not installed (if not appearing in the Product_status output) and you could reinstall SAS insuring that the module is selected for install.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't have that installed then you will likely not find any automated way to read multiple sheets because the other tools don't have ability to parse out the information from the Excel file directly.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 20:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-Tabs-to-Different-Datasets/m-p/619311#M181789</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-01-22T20:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel Tabs to Different Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-Tabs-to-Different-Datasets/m-p/619334#M181804</link>
      <description>&lt;P&gt;To copy each sheet from a file named 'physical filename.xlsx' to datasets in the WORK library first make a libref pointing to the XLSX file and then use PROC COPY to copy the datasets that SAS sees in the workbook.&amp;nbsp; Each sheet should be its own dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname HAVE xlsx 'physical filename.xlsx';
proc copy inlib=HAVE outlib=WORK;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jan 2020 21:53:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-Tabs-to-Different-Datasets/m-p/619334#M181804</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-01-22T21:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel Tabs to Different Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-Tabs-to-Different-Datasets/m-p/619552#M181934</link>
      <description>&lt;P&gt;This is working but the sheet names with spaces and '-' between them facing naming erros&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 15:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-Tabs-to-Different-Datasets/m-p/619552#M181934</guid>
      <dc:creator>sg_kr</dc:creator>
      <dc:date>2020-01-23T15:28:23Z</dc:date>
    </item>
  </channel>
</rss>

