<?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: excel to dataset in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173796#M44745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;P&gt;libname my_xls excel "S:\Temp\Rob\tmp.xlsx" mixed=yes;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will show you all the worksheets within your XLS file, it should be a simple matter to loop over them and create datasets.&amp;nbsp; E.g.&lt;/P&gt;&lt;P&gt;data sheet1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set my_xls.'sheet1$';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference: &lt;A href="http://www2.sas.com/proceedings/sugi31/024-31.pdf" title="http://www2.sas.com/proceedings/sugi31/024-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/024-31.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2014 12:29:15 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-04-09T12:29:15Z</dc:date>
    <item>
      <title>excel to dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173795#M44744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a 2010 excel with N number of tab sheets..i would like to create a program which &lt;/P&gt;&lt;P&gt;would create N number of datasets with tab sheets name as name of the dataset....if tab sheets&lt;/P&gt;&lt;P&gt;have numerical number as name....sas should assign default name to the dataset otherwise name of the &lt;/P&gt;&lt;P&gt;tabsheet as dataset name....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 12:21:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173795#M44744</guid>
      <dc:creator>rakeshvvv</dc:creator>
      <dc:date>2014-04-09T12:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: excel to dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173796#M44745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;P&gt;libname my_xls excel "S:\Temp\Rob\tmp.xlsx" mixed=yes;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will show you all the worksheets within your XLS file, it should be a simple matter to loop over them and create datasets.&amp;nbsp; E.g.&lt;/P&gt;&lt;P&gt;data sheet1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set my_xls.'sheet1$';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference: &lt;A href="http://www2.sas.com/proceedings/sugi31/024-31.pdf" title="http://www2.sas.com/proceedings/sugi31/024-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/024-31.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 12:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173796#M44745</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-04-09T12:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: excel to dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173797#M44746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;whatever worksheet tab names are present, SAS can use them using the style I refer to as "name constant.&lt;/P&gt;&lt;P&gt;I.E. 'tabname'n&lt;/P&gt;&lt;P&gt;So If the tabs are just numbers 1,2,3,4 then a data step could bring them all in with code like&lt;/P&gt;&lt;P&gt;libname yours 'your excel workbook path\name' mixed= yes&amp;nbsp; access= readonly ;&lt;/P&gt;&lt;P&gt;data all_together ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set yours.'1'n yours.'2.'n yours.'3'n&amp;nbsp; yours.'4'n ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;of course results depend on the qualitty of the data in excel .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peterC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 13:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173797#M44746</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-04-09T13:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: excel to dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173798#M44747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to assign library name with above format.......it says invalid format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 13:42:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173798#M44747</guid>
      <dc:creator>rakeshvvv</dc:creator>
      <dc:date>2014-04-09T13:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: excel to dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173799#M44748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Missing the engine statement - excel, please see my previous post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 13:55:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173799#M44748</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-04-09T13:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: excel to dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173800#M44749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Used your previous code but i was getting following error.... I am using 9.2 version of sas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname my_xls excel "/xxxxxxxxxxxxxx/abc.xlsx" mixed=yes;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: The EXCEL engine cannot be found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 14:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173800#M44749</guid>
      <dc:creator>rakeshvvv</dc:creator>
      <dc:date>2014-04-09T14:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: excel to dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173801#M44750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange, do you have SAS/ACCESS component?&lt;/P&gt;&lt;P&gt;It should be available in SAS 9.2 if you have SAS/ACCESS: &lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003073035.htm" title="http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003073035.htm"&gt;SAS/ACCESS(R) 9.2 Interface to PC Files: Reference, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 14:11:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173801#M44750</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-04-09T14:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: excel to dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173802#M44751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it would work if you licence sas access to pc files&lt;/P&gt;&lt;P&gt;but since you don't, it doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One workaround involves saving all your data sheets into csv files and loading those&lt;/P&gt;&lt;P&gt;Another involves DDE but in more recent machine systems that has become less reliable for more than small volumes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 14:15:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173802#M44751</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-04-09T14:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: excel to dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173803#M44752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps it is the platform&lt;/P&gt;&lt;P&gt;@rakeshvv&lt;/P&gt;&lt;P&gt;are you running sas on a windows platform, or elsewhere?&lt;/P&gt;&lt;P&gt;Are you running this code in SAS Enterprise Guide connected to a server that is not running on windows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then there might be a problem &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 14:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173803#M44752</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-04-09T14:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: excel to dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173804#M44753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not running it on SAS Enterprise guide but was running on sas unix platform&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 18:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173804#M44753</guid>
      <dc:creator>rakeshvvv</dc:creator>
      <dc:date>2014-04-09T18:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: excel to dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173805#M44754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check your SAS licence - prod setinit noalias; run; If you dont have SAS/ACCESS Interface to PC Files listed then this will explain your errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 19:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/excel-to-dataset/m-p/173805#M44754</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-04-09T19:34:52Z</dc:date>
    </item>
  </channel>
</rss>

