<?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 engine - library limitations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Excel-engine-library-limitations/m-p/507867#M136339</link>
    <description>Try disconnecting from the library when you're done?&lt;BR /&gt;This will de-assign the lib reference. &lt;BR /&gt;&lt;BR /&gt;libname &amp;amp;reqnum;</description>
    <pubDate>Fri, 26 Oct 2018 19:19:29 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-10-26T19:19:29Z</dc:date>
    <item>
      <title>Excel engine - library limitations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-engine-library-limitations/m-p/507860#M136335</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know if there is a limitation to the number of Excel libraries that can be created in a single session via the excel engine?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code is below. I am using a macro with Excel file locations on my company's network to read in each individual sheet within each Excel file. After the 64th Excel file, SAS fails to read subsequent files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%macro compile (reqnum,tab,sheet,dir);

libname &amp;amp;reqnum excel "&amp;amp;dir" mixed=yes;
data &amp;amp;reqnum.&amp;amp;sheet;
	set &amp;amp;reqnum.."&amp;amp;tab"n;

run;

%mend compile;

data _null_;
set cwrequests;
call
execute('%compile('||reqnum||','||tab||','||sheet||','||dir||')');
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have checked the R349 Excel file/directory that the ERROR references and even excluded that record from my call table to see if it was an issue with that specific Excel file. No matter what I do, the program cuts out after the 64th Excel file...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Errors:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR: Connect: Unspecified error&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: Error in the LIBNAME statement.&lt;/STRONG&gt;&lt;BR /&gt;318 +&lt;BR /&gt;data R349group1; set R349."group1$"n; drop group; REQNUM="R349"; GROUP1="group1"; if patid&amp;gt;0&lt;BR /&gt;then patid_char = strip(put(patid,15.)); else&lt;BR /&gt;&lt;STRONG&gt;ERROR: Libname R349 is not assigned.&lt;/STRONG&gt;&lt;BR /&gt;319 + patid_char=patid; drop patid; rename patid_char=PATID group1=GROUP; keep reqnum site&lt;BR /&gt;patid_char group1 patient_id participant_id subject_id; run;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 19:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-engine-library-limitations/m-p/507860#M136335</guid>
      <dc:creator>lbarwick</dc:creator>
      <dc:date>2018-10-26T19:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Excel engine - library limitations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-engine-library-limitations/m-p/507867#M136339</link>
      <description>Try disconnecting from the library when you're done?&lt;BR /&gt;This will de-assign the lib reference. &lt;BR /&gt;&lt;BR /&gt;libname &amp;amp;reqnum;</description>
      <pubDate>Fri, 26 Oct 2018 19:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-engine-library-limitations/m-p/507867#M136339</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-26T19:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Excel engine - library limitations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-engine-library-limitations/m-p/507871#M136342</link>
      <description>Ah - so simple. Thank you, it worked!</description>
      <pubDate>Fri, 26 Oct 2018 19:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-engine-library-limitations/m-p/507871#M136342</guid>
      <dc:creator>lbarwick</dc:creator>
      <dc:date>2018-10-26T19:27:53Z</dc:date>
    </item>
  </channel>
</rss>

