<?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 Using VB Script to close EG not working on Win2019 Server in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-VB-Script-to-close-EG-not-working-on-Win2019-Server/m-p/715889#M38056</link>
    <description>&lt;P&gt;We have a simple VB script for error checking/reporting that will also close the EG session with this block:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;printLog("Initiating exit sequence")&lt;BR /&gt;If not (app Is Nothing) Then&lt;BR /&gt;printLog("Attempting to shutdown EG")&lt;BR /&gt;app.Quit&lt;BR /&gt;Set app = Nothing&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has worked flawlessly to close out the EG session and not have any remnant temp files being stored in the user directory on our Win2012R2 server, however on our new AWS EC2, it works intermittently. At times it will close the EG session properly, other times it just hangs after the app.Quit command.&lt;/P&gt;&lt;P&gt;Log entries when everything is working shows this:&lt;/P&gt;&lt;P&gt;021-02-01 11:35:24,386 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - Calling IWorkspace.Close&lt;BR /&gt;2021-02-01 11:35:24,544 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - IWorkspace.Close completed&lt;BR /&gt;2021-02-01 11:35:24,544 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - Calling ObjectKeeper.RemoveObject&lt;BR /&gt;2021-02-01 11:35:24,547 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - ObjectKeeper.RemoveObject completed&lt;BR /&gt;2021-02-01 11:35:24,547 [1] DEBUG SAS.EC.Directory.Model.Server [(null)] - Enter Dispose(true) for server named: SASApp&lt;BR /&gt;2021-02-01 11:35:24,548 [1] DEBUG SAS.EC.Execution.ExecutionService [(null)] - Disposing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log Entries when it does not work show this with the application hanging on ObjectKeeper.RemoveObject:&lt;/P&gt;&lt;P&gt;2021-02-01 11:45:28,383 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - Calling IWorkspace.Close&lt;BR /&gt;2021-02-01 11:45:28,509 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - IWorkspace.Close completed&lt;BR /&gt;2021-02-01 11:45:28,509 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - Calling ObjectKeeper.RemoveObject&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;After some time left untouched we see this:&lt;/P&gt;&lt;P&gt;2021-02-01 12:21:15,894 [2] DEBUG SAS.BI.SASComb.Method [(null)] - Deleting CBObject 0xc0.&lt;BR /&gt;2021-02-01 12:21:15,894 [2] DEBUG SAS.BI.SASComb.Method [(null)] - SAS has disconnected; not sending final release.&lt;BR /&gt;2021-02-01 12:21:15,894 [2] DEBUG SAS.BI.SASComb.Method [(null)] - Deleting CBObject 0xbf.&lt;BR /&gt;2021-02-01 12:21:15,894 [2] DEBUG SAS.BI.SASComb.Method [(null)] - SAS has disconnected; not sending final release.&lt;BR /&gt;2021-02-01 12:21:15,896 [2] DEBUG SAS.BI.SASComb.Method [(null)] - Deleting CBObject 0xbc.&lt;BR /&gt;2021-02-01 12:21:15,896 [2] DEBUG SAS.BI.SASComb.Method [(null)] - SAS has disconnected; not sending final release.&lt;BR /&gt;2021-02-01 12:21:15,896 [2] DEBUG SAS.BI.SASComb.Method [(null)] - Deleting CBObject 0xbb.&lt;BR /&gt;2021-02-01 12:21:15,896 [2] DEBUG SAS.BI.SASComb.Method [(null)] - SAS has disconnected; not sending final release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to determine why when we are running app.Quit it hangs on&lt;/P&gt;&lt;P&gt;2021-02-01 11:45:28,509 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - Calling ObjectKeeper.RemoveObject&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone had experience with these hanging issues in the past? Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2021 21:39:25 GMT</pubDate>
    <dc:creator>cmyers1</dc:creator>
    <dc:date>2021-02-01T21:39:25Z</dc:date>
    <item>
      <title>Using VB Script to close EG not working on Win2019 Server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-VB-Script-to-close-EG-not-working-on-Win2019-Server/m-p/715889#M38056</link>
      <description>&lt;P&gt;We have a simple VB script for error checking/reporting that will also close the EG session with this block:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;printLog("Initiating exit sequence")&lt;BR /&gt;If not (app Is Nothing) Then&lt;BR /&gt;printLog("Attempting to shutdown EG")&lt;BR /&gt;app.Quit&lt;BR /&gt;Set app = Nothing&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has worked flawlessly to close out the EG session and not have any remnant temp files being stored in the user directory on our Win2012R2 server, however on our new AWS EC2, it works intermittently. At times it will close the EG session properly, other times it just hangs after the app.Quit command.&lt;/P&gt;&lt;P&gt;Log entries when everything is working shows this:&lt;/P&gt;&lt;P&gt;021-02-01 11:35:24,386 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - Calling IWorkspace.Close&lt;BR /&gt;2021-02-01 11:35:24,544 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - IWorkspace.Close completed&lt;BR /&gt;2021-02-01 11:35:24,544 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - Calling ObjectKeeper.RemoveObject&lt;BR /&gt;2021-02-01 11:35:24,547 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - ObjectKeeper.RemoveObject completed&lt;BR /&gt;2021-02-01 11:35:24,547 [1] DEBUG SAS.EC.Directory.Model.Server [(null)] - Enter Dispose(true) for server named: SASApp&lt;BR /&gt;2021-02-01 11:35:24,548 [1] DEBUG SAS.EC.Execution.ExecutionService [(null)] - Disposing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log Entries when it does not work show this with the application hanging on ObjectKeeper.RemoveObject:&lt;/P&gt;&lt;P&gt;2021-02-01 11:45:28,383 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - Calling IWorkspace.Close&lt;BR /&gt;2021-02-01 11:45:28,509 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - IWorkspace.Close completed&lt;BR /&gt;2021-02-01 11:45:28,509 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - Calling ObjectKeeper.RemoveObject&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;After some time left untouched we see this:&lt;/P&gt;&lt;P&gt;2021-02-01 12:21:15,894 [2] DEBUG SAS.BI.SASComb.Method [(null)] - Deleting CBObject 0xc0.&lt;BR /&gt;2021-02-01 12:21:15,894 [2] DEBUG SAS.BI.SASComb.Method [(null)] - SAS has disconnected; not sending final release.&lt;BR /&gt;2021-02-01 12:21:15,894 [2] DEBUG SAS.BI.SASComb.Method [(null)] - Deleting CBObject 0xbf.&lt;BR /&gt;2021-02-01 12:21:15,894 [2] DEBUG SAS.BI.SASComb.Method [(null)] - SAS has disconnected; not sending final release.&lt;BR /&gt;2021-02-01 12:21:15,896 [2] DEBUG SAS.BI.SASComb.Method [(null)] - Deleting CBObject 0xbc.&lt;BR /&gt;2021-02-01 12:21:15,896 [2] DEBUG SAS.BI.SASComb.Method [(null)] - SAS has disconnected; not sending final release.&lt;BR /&gt;2021-02-01 12:21:15,896 [2] DEBUG SAS.BI.SASComb.Method [(null)] - Deleting CBObject 0xbb.&lt;BR /&gt;2021-02-01 12:21:15,896 [2] DEBUG SAS.BI.SASComb.Method [(null)] - SAS has disconnected; not sending final release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to determine why when we are running app.Quit it hangs on&lt;/P&gt;&lt;P&gt;2021-02-01 11:45:28,509 [1] INFO SAS.EC.Directory.Model.SASWorkspace [(null)] - Calling ObjectKeeper.RemoveObject&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone had experience with these hanging issues in the past? Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 21:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-VB-Script-to-close-EG-not-working-on-Win2019-Server/m-p/715889#M38056</guid>
      <dc:creator>cmyers1</dc:creator>
      <dc:date>2021-02-01T21:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using VB Script to close EG not working on Win2019 Server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-VB-Script-to-close-EG-not-working-on-Win2019-Server/m-p/716038#M38057</link>
      <description>&lt;P&gt;I don't know why it's hanging there. From the log, it's cleaning up the connection to the SAS session (Workspace) -- unsubscribing from events, closing data connections, etc.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 12:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-VB-Script-to-close-EG-not-working-on-Win2019-Server/m-p/716038#M38057</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-02-02T12:18:21Z</dc:date>
    </item>
  </channel>
</rss>

