<?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: how to Imorting excel file with unknown sheet  names. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271153#M58297</link>
    <description>&lt;P&gt;Once you successfully assign a libname to that excel file . You can check Sheet name via dictionary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xx xlsx '/folders/myfolders/test1.xlsx' ;

proc sql;
select * from dictionary.members where libname='XX';
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 May 2016 01:46:03 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-05-18T01:46:03Z</dc:date>
    <item>
      <title>how to Imorting excel file with unknown sheet  names.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271042#M58279</link>
      <description>&lt;P&gt;I want to import excel file in SAS but sheet count and name is going to change. I need a macro which can take sheet name automatically from excel file and create a dataset.Excel file can have one or more sheets &amp;nbsp;.If file have multiple sheets it should append all data of all sheets and create one dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any answer will be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tarun Chitkara&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 17:39:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271042#M58279</guid>
      <dc:creator>tarunchitkara</dc:creator>
      <dc:date>2016-05-17T17:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to Imorting excel file with unknown sheet  names.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271047#M58281</link>
      <description>&lt;P&gt;Can you access an Excel file via a libname? If so you can use proc datasets to copy all the sheets over.&lt;/P&gt;
&lt;P&gt;Maybe this can help get you started.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xlib excel 'path to excel file.xlsx';

proc datasets library=work;
copy in=xlib out=work;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 May 2016 17:53:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271047#M58281</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-17T17:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to Imorting excel file with unknown sheet  names.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271050#M58282</link>
      <description>Thank you Rezza for your reply .I will try this option but If use know any macro or using proc import procedure then please let me know.In my framework I am reading one by one file so proc import will be more useful .</description>
      <pubDate>Tue, 17 May 2016 18:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271050#M58282</guid>
      <dc:creator>tarunchitkara</dc:creator>
      <dc:date>2016-05-17T18:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to Imorting excel file with unknown sheet  names.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271074#M58286</link>
      <description>&lt;P&gt;If you want to use PROC IMPORT you would still need to use a LIBNAME with the EXCEL option to get the sheet names that IMPORT requires. Using&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;'s solution is a lot easier.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 19:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271074#M58286</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-05-17T19:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to Imorting excel file with unknown sheet  names.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271081#M58287</link>
      <description>&lt;P&gt;Are your files well structured? If not, one issue your going to run into very quickly is mismatched types. A field in one sheet will get imported as a character and numeric in another, preventing you from simply appending all the files together.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you feel a macro or proc import does that my solution doesn't? All of the methods will have the issue mentioned above.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 19:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271081#M58287</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-17T19:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to Imorting excel file with unknown sheet  names.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271153#M58297</link>
      <description>&lt;P&gt;Once you successfully assign a libname to that excel file . You can check Sheet name via dictionary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xx xlsx '/folders/myfolders/test1.xlsx' ;

proc sql;
select * from dictionary.members where libname='XX';
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 May 2016 01:46:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271153#M58297</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-05-18T01:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to Imorting excel file with unknown sheet  names.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271165#M58301</link>
      <description>Thank you Reeza your solution works.</description>
      <pubDate>Wed, 18 May 2016 04:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271165#M58301</guid>
      <dc:creator>tarunchitkara</dc:creator>
      <dc:date>2016-05-18T04:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to Imorting excel file with unknown sheet  names.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271166#M58302</link>
      <description>Thak you Ksharp</description>
      <pubDate>Wed, 18 May 2016 04:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-Imorting-excel-file-with-unknown-sheet-names/m-p/271166#M58302</guid>
      <dc:creator>tarunchitkara</dc:creator>
      <dc:date>2016-05-18T04:28:02Z</dc:date>
    </item>
  </channel>
</rss>

