<?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 get pcfiles libname engine to recognize long Excel sheet names in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-get-pcfiles-libname-engine-to-recognize-long-Excel-sheet/m-p/516154#M3087</link>
    <description>&lt;P&gt;I think you'll need to use an external method to get the names. The funny thing is it does read them properly if you do know the names. &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;37   data t1;
38   set demo.'test test test test test test$'n;
39   run;

NOTE: There were 1 observations read from the data set DEMO.'test test test test test test$'n.
NOTE: The data set WORK.T1 has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.02 seconds
      cpu time            0.01 seconds


40
41   data t2;
42   set demo.'test test test test test test t$'n;
43   run;

NOTE: There were 1 observations read from the data set DEMO.'test test test test test test t$'n.
NOTE: The data set WORK.T2 has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 26 Nov 2018 21:41:44 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-11-26T21:41:44Z</dc:date>
    <item>
      <title>How to get pcfiles libname engine to recognize long Excel sheet names</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-get-pcfiles-libname-engine-to-recognize-long-Excel-sheet/m-p/516148#M3083</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to run a dynamic macro that appends all worksheets for each Excel workbook in a specified folder path.&lt;/P&gt;&lt;P&gt;I'm accomplishing this using a similar method to the one detailed &lt;A href="https://communities.sas.com/t5/SAS-Programming/Query-excel-to-find-sheet-name/m-p/45477/highlight/true#M9403" target="_self"&gt;here.&lt;/A&gt;&amp;nbsp; I am using pcfiles engine for the libname as there is a mixture of .xlsx and .xls, and I'm running 64 bit SAS 9.4, so EXCEL libname engine doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I'm&amp;nbsp;encountering is that some workbooks have sheet names of max length, which SAS does not find with a pcfiles libname statement.&amp;nbsp; Is there a way to get a SAS libname statement to recognize max length sheet names so that I can utilize library memnames to dynamically append all sheets?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;attached Excel file has two sheets, one with a name too long to be caught by the below listed libname statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%let yourpath = c:\;
libname nametest pcfiles path = "&amp;amp;yourpath.example.xls";&lt;/PRE&gt;&lt;P&gt;Is there a way to get a pcfiles libname statement to recognize these longer names?&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Is there an alternate method to accomplishing the same goal of dynamically appending all worksheets for all workbooks in a specified path?&amp;nbsp; I'd prefer not to resort to VBA to alter the source files if at all possible.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 21:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-get-pcfiles-libname-engine-to-recognize-long-Excel-sheet/m-p/516148#M3083</guid>
      <dc:creator>cgmoore</dc:creator>
      <dc:date>2018-11-26T21:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get pcfiles libname engine to recognize long Excel sheet names</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-get-pcfiles-libname-engine-to-recognize-long-Excel-sheet/m-p/516154#M3087</link>
      <description>&lt;P&gt;I think you'll need to use an external method to get the names. The funny thing is it does read them properly if you do know the names. &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;37   data t1;
38   set demo.'test test test test test test$'n;
39   run;

NOTE: There were 1 observations read from the data set DEMO.'test test test test test test$'n.
NOTE: The data set WORK.T1 has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.02 seconds
      cpu time            0.01 seconds


40
41   data t2;
42   set demo.'test test test test test test t$'n;
43   run;

NOTE: There were 1 observations read from the data set DEMO.'test test test test test test t$'n.
NOTE: The data set WORK.T2 has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Nov 2018 21:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-get-pcfiles-libname-engine-to-recognize-long-Excel-sheet/m-p/516154#M3087</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-26T21:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get pcfiles libname engine to recognize long Excel sheet names</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-get-pcfiles-libname-engine-to-recognize-long-Excel-sheet/m-p/516155#M3088</link>
      <description>&lt;P&gt;If you use the LIBNAME approach to access Excel then you are limited to a maximum of 32 characters for sheet names. There is no workaround. SAS is working on increasing this limit to 128 characters with SAS 9.5, hopefully due out in the next 12 months.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 21:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-get-pcfiles-libname-engine-to-recognize-long-Excel-sheet/m-p/516155#M3088</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-11-26T21:41:25Z</dc:date>
    </item>
  </channel>
</rss>

