<?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 terminate a sas sessions created by pre assign library? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-terminate-a-sas-sessions-created-by-pre-assign-library/m-p/356365#M274112</link>
    <description>&lt;P&gt;It seems that you can specify SAS code to execute&amp;nbsp;at "system boundaries", start and stop of the server.&lt;/P&gt;
&lt;P&gt;Perhaps you could do a libname _all_ clear; there? (untested)&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/biasag/63854/HTML/default/viewer.htm#n11015intelplatform00srvradm.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/biasag/63854/HTML/default/viewer.htm#n11015intelplatform00srvradm.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2017 13:21:53 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2017-05-05T13:21:53Z</dc:date>
    <item>
      <title>How to terminate a sas sessions created by pre assign library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-terminate-a-sas-sessions-created-by-pre-assign-library/m-p/356283#M274111</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem when the services are started, connections to the oracle are created by the sessions started by the PooledWorkspaceServer and the StoredProcessServer. However when we stop these services the sessions created continue in Oracle data base, in this&amp;nbsp;way, the bd is suffering problems to reach the maximum limit of connections that are configured in the db.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;These ORACLE libraries are preassigned in Metadata in such a way that all SAS sessions started by the sas.servers services, in particular the Object Spawner, which starts SAS sessions from the stored process or pooled workspace session, and the OLAPServer connections to the Bb, for having pre-allocated libraries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: Is there any way to end these sessions when we stop services?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 09:34:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-terminate-a-sas-sessions-created-by-pre-assign-library/m-p/356283#M274111</guid>
      <dc:creator>SSS20</dc:creator>
      <dc:date>2017-05-05T09:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to terminate a sas sessions created by pre assign library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-terminate-a-sas-sessions-created-by-pre-assign-library/m-p/356365#M274112</link>
      <description>&lt;P&gt;It seems that you can specify SAS code to execute&amp;nbsp;at "system boundaries", start and stop of the server.&lt;/P&gt;
&lt;P&gt;Perhaps you could do a libname _all_ clear; there? (untested)&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/biasag/63854/HTML/default/viewer.htm#n11015intelplatform00srvradm.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/biasag/63854/HTML/default/viewer.htm#n11015intelplatform00srvradm.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 13:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-terminate-a-sas-sessions-created-by-pre-assign-library/m-p/356365#M274112</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-05-05T13:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to terminate a sas sessions created by pre assign library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-terminate-a-sas-sessions-created-by-pre-assign-library/m-p/356619#M274113</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/142441"&gt;@SSS20&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;On top of what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;&amp;nbsp;suggests I'm normally using "defer=yes" for all&amp;nbsp;pre-assigned libraries so a process only establishes a connection if it's required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DEFER= LIBNAME Option&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#p1aukl464makuln1mszw8l045xgy.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#p1aukl464makuln1mszw8l045xgy.htm&lt;/A&gt; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2017 11:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-terminate-a-sas-sessions-created-by-pre-assign-library/m-p/356619#M274113</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-05-06T11:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to terminate a sas sessions created by pre assign library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-terminate-a-sas-sessions-created-by-pre-assign-library/m-p/357786#M274114</link>
      <description>&lt;P&gt;Hi @LinusHa and &lt;SPAN class="login-bold"&gt;Patrick&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your prompt response, it looks like this will work, but I still have the following doubt:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;about DEFER Option, on sas support reference&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#p1aukl464makuln1mszw8l045xgy.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#p1aukl464makuln1mszw8l045xgy.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it’s&amp;nbsp; specified that option has to be used on the libname statement and on&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/biasag/63854/HTML/default/viewer.htm#n11015intelplatform00srvradm.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/biasag/63854/HTML/default/viewer.htm#n11015intelplatform00srvradm.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It’s specified that we can add code, so on that code should appear all ORACLE libname statements with DEFER Option, but would those ORACLE libname overwrite, libnames defined on Metadata that are not defined by SAS/BASE code?.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me in more this one doubt?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your availability!!!&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 08:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-terminate-a-sas-sessions-created-by-pre-assign-library/m-p/357786#M274114</guid>
      <dc:creator>SSS20</dc:creator>
      <dc:date>2017-05-11T08:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to terminate a sas sessions created by pre assign library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-terminate-a-sas-sessions-created-by-pre-assign-library/m-p/357830#M274115</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/142441"&gt;@SSS20&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;DEFER is a libname option which you define as part of a libname definition.&amp;nbsp;You can define any library via SAS Metadata or directly in SAS code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second link you've posted has nothing to do with this. That's about executing code during SAS session invocation or SAS session termination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example for a metadata library definition with the ODBC engine that is pre-assigned and with defer=yes:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8813iABCDE16F0D241507/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8814iB8C4C3904EE73949/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 11:29:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-terminate-a-sas-sessions-created-by-pre-assign-library/m-p/357830#M274115</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-05-11T11:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to terminate a sas sessions created by pre assign library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-terminate-a-sas-sessions-created-by-pre-assign-library/m-p/359612#M274116</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you a lot for your availability to help me with this question!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 11:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-terminate-a-sas-sessions-created-by-pre-assign-library/m-p/359612#M274116</guid>
      <dc:creator>SSS20</dc:creator>
      <dc:date>2017-05-18T11:35:19Z</dc:date>
    </item>
  </channel>
</rss>

