<?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 LIbname to Excel in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/LIbname-to-Excel/m-p/240481#M1764</link>
    <description>&lt;P&gt;I am using a libname statement to access the different sheets in an .xls workbook. For example,:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname xls "C:\MyDoc.xls";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I noticed that sometimes a sheet with a long sheet name does not appear in my library. Is there a workaround for this apparent character limit?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Dec 2015 16:27:29 GMT</pubDate>
    <dc:creator>bsam17</dc:creator>
    <dc:date>2015-12-22T16:27:29Z</dc:date>
    <item>
      <title>LIbname to Excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/LIbname-to-Excel/m-p/240481#M1764</link>
      <description>&lt;P&gt;I am using a libname statement to access the different sheets in an .xls workbook. For example,:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname xls "C:\MyDoc.xls";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I noticed that sometimes a sheet with a long sheet name does not appear in my library. Is there a workaround for this apparent character limit?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 16:27:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/LIbname-to-Excel/m-p/240481#M1764</guid>
      <dc:creator>bsam17</dc:creator>
      <dc:date>2015-12-22T16:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: LIbname to Excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/LIbname-to-Excel/m-p/240483#M1765</link>
      <description>32 characters is the limit. I'm not sure there's a work around for Excel files, you could try an ODBC connection direct pass through method.</description>
      <pubDate>Tue, 22 Dec 2015 16:31:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/LIbname-to-Excel/m-p/240483#M1765</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-22T16:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: LIbname to Excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/LIbname-to-Excel/m-p/240486#M1766</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp;Can you illustrate how to do that? Alternatively, is there a way to count the number of sheets in an Excel workbook without extracting the name, even if the sheet name is longer than 32 characters?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 16:36:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/LIbname-to-Excel/m-p/240486#M1766</guid>
      <dc:creator>bsam17</dc:creator>
      <dc:date>2015-12-22T16:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: LIbname to Excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/LIbname-to-Excel/m-p/240491#M1767</link>
      <description>There's an example here:&lt;BR /&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a002644817.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a002644817.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;From a brief google and test, it looks like Excel 2010, at least, limits the characters to 31 chars. The general consensus seems to be live within that otherwise you run into issues in other applications &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;You could look at proc contents once you've connected to that sheet but I don't think it will show the long sheet.</description>
      <pubDate>Tue, 22 Dec 2015 17:02:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/LIbname-to-Excel/m-p/240491#M1767</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-22T17:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: LIbname to Excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/LIbname-to-Excel/m-p/240496#M1768</link>
      <description>&lt;P&gt;I was confronted with that issue once with an older xls file and ended up (reluctantly) editing the file to shorten the sheet name.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 17:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/LIbname-to-Excel/m-p/240496#M1768</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-12-22T17:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: LIbname to Excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/LIbname-to-Excel/m-p/240520#M1769</link>
      <description>&lt;P&gt;There is no workaround in the current SAS version for displaying sheet/table names longer than 32 characters in SAS library lists. The same problem occurs with accessing databases such as Oracle, SQL Server etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only way to read these is using SQL PASSTHRU where you can specify a sheet name longer than 32 characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is an often-requested enhancement to SAS so I'm hopeful it will happen in a future release. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 18:50:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/LIbname-to-Excel/m-p/240520#M1769</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-12-22T18:50:49Z</dc:date>
    </item>
  </channel>
</rss>

