<?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: Libname oledb to access xls files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Libname-oledb-to-access-xls-files/m-p/95063#M20021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HDR=Yes or HDR=No. See code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname myxls oledb ACCESS=READONLY provider="Microsoft.ACE.OLEDB.12.0"&lt;/P&gt;&lt;P&gt;properties=("data source"="&amp;amp;fullname" "Mode"="Read")&lt;/P&gt;&lt;P&gt;provider_string="Excel 8.0;ReadOnly=True;HDR=no;IMEX=1;"&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Oleg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2012 08:08:28 GMT</pubDate>
    <dc:creator>Oleg_L</dc:creator>
    <dc:date>2012-04-27T08:08:28Z</dc:date>
    <item>
      <title>Libname oledb to access xls files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-oledb-to-access-xls-files/m-p/95062#M20020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SAS-users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the code below to import a specific range from XLS sheet.&lt;/P&gt;&lt;P&gt;The first row of the range becomes the variables names.&lt;/P&gt;&lt;P&gt;I want the automatic variables names (similarly option GETNAMES=NO in PROC IMPORT).&lt;BR /&gt;Is it possible with OLEDB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname boo oledb &lt;BR /&gt;init_string="provider=Microsoft.ACE.OLEDB.12.0;&lt;BR /&gt;data source=\\xxxxx.xxxx.xxx.xx\UOLib\test\SNB0_monthly_mar12.xls;&lt;BR /&gt;extended properties=Excel 8.0";&lt;/P&gt;&lt;P&gt;data new; set boo.'M-7$A6:H3000'n; run;&lt;BR /&gt; &lt;BR /&gt;libname boo clear;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Oleg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 06:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-oledb-to-access-xls-files/m-p/95062#M20020</guid>
      <dc:creator>Oleg_L</dc:creator>
      <dc:date>2012-04-26T06:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Libname oledb to access xls files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-oledb-to-access-xls-files/m-p/95063#M20021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HDR=Yes or HDR=No. See code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname myxls oledb ACCESS=READONLY provider="Microsoft.ACE.OLEDB.12.0"&lt;/P&gt;&lt;P&gt;properties=("data source"="&amp;amp;fullname" "Mode"="Read")&lt;/P&gt;&lt;P&gt;provider_string="Excel 8.0;ReadOnly=True;HDR=no;IMEX=1;"&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Oleg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 08:08:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-oledb-to-access-xls-files/m-p/95063#M20021</guid>
      <dc:creator>Oleg_L</dc:creator>
      <dc:date>2012-04-27T08:08:28Z</dc:date>
    </item>
  </channel>
</rss>

