<?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 Connection Limitation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Libname-Connection-Limitation/m-p/66080#M14347</link>
    <description>Thanks Chris...I have just moved my clear statements to after each out file so it clears as it goes.</description>
    <pubDate>Tue, 17 May 2011 05:33:56 GMT</pubDate>
    <dc:creator>ColmSmyth</dc:creator>
    <dc:date>2011-05-17T05:33:56Z</dc:date>
    <item>
      <title>Libname Connection Limitation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-Connection-Limitation/m-p/66077#M14344</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
Is there a max number of connection libnames in SAS 9.2, I have code that outputs reports to many seperate XLS connections using libname.&lt;BR /&gt;
&lt;BR /&gt;
Some info on google about it regarding limit of 65 connections but nothing official from SAS.&lt;BR /&gt;
&lt;BR /&gt;
The error I get is:&lt;BR /&gt;
ERROR: Connect: Unspecified error&lt;BR /&gt;
&lt;BR /&gt;
If will not go away unless i clear a a libname to free up the connection space.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Colm</description>
      <pubDate>Mon, 16 May 2011 14:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-Connection-Limitation/m-p/66077#M14344</guid>
      <dc:creator>ColmSmyth</dc:creator>
      <dc:date>2011-05-16T14:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Libname Connection Limitation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-Connection-Limitation/m-p/66078#M14345</link>
      <description>Colm,&lt;BR /&gt;
&lt;BR /&gt;
I've confirmed that's the limit (64 connections):&lt;BR /&gt;
[pre]&lt;BR /&gt;
%macro excelMany(howMany);&lt;BR /&gt;
%do i = 1 %to &amp;amp;howMany;&lt;BR /&gt;
 libname test&amp;amp;i. excel path="c:\sas\data\test.xls";&lt;BR /&gt;
%end;&lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
%excelMany(65);&lt;BR /&gt;
[/pre]&lt;BR /&gt;
This generates an error on the 65th assignment.  The workaround is to clear the other libnames before you assign another one.&lt;BR /&gt;
&lt;BR /&gt;
The MS Jet API (used for this type of connection) does have a limitation of 128 sessions, I've read.  It might be that each libref connection uses 2 of those sessions in SAS, but that's a guess on my part.&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Mon, 16 May 2011 19:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-Connection-Limitation/m-p/66078#M14345</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2011-05-16T19:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Libname Connection Limitation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-Connection-Limitation/m-p/66079#M14346</link>
      <description>and it is not an issue for base SAS library engine. I've tested 70 OK</description>
      <pubDate>Mon, 16 May 2011 22:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-Connection-Limitation/m-p/66079#M14346</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-05-16T22:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Libname Connection Limitation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-Connection-Limitation/m-p/66080#M14347</link>
      <description>Thanks Chris...I have just moved my clear statements to after each out file so it clears as it goes.</description>
      <pubDate>Tue, 17 May 2011 05:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-Connection-Limitation/m-p/66080#M14347</guid>
      <dc:creator>ColmSmyth</dc:creator>
      <dc:date>2011-05-17T05:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Libname Connection Limitation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-Connection-Limitation/m-p/66081#M14348</link>
      <description>It strange then as im running Base now and i get the error on 64...ohh well perhaps some installations are different ?&lt;BR /&gt;
&lt;BR /&gt;
At any rate I have work around now so its ok.&lt;BR /&gt;
&lt;BR /&gt;
Cheers</description>
      <pubDate>Tue, 17 May 2011 05:34:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-Connection-Limitation/m-p/66081#M14348</guid>
      <dc:creator>ColmSmyth</dc:creator>
      <dc:date>2011-05-17T05:34:49Z</dc:date>
    </item>
  </channel>
</rss>

