<?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: Disconnect server from SAS Enterprise guide programatically in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Disconnect-server-from-SAS-Enterprise-guide-programatically/m-p/480295#M31170</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/49583"&gt;@FrancisDsa&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Then I guess you've got only two options.&lt;/P&gt;
&lt;P&gt;A) Talk to the people maintaining this macro and ask if they could provide an additional parameter to allow for the macro to re-execute on request.&lt;/P&gt;
&lt;P&gt;B) Copy the macro code and change the logic to what you need it to be, then issue the macro code at the beginning of your program. That should compile it into WORK which comes quite early in the macro search path (SASAUTOS) so you should pick-up your macro version when calling it.&lt;/P&gt;</description>
    <pubDate>Sun, 22 Jul 2018 23:07:11 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2018-07-22T23:07:11Z</dc:date>
    <item>
      <title>Disconnect server from SAS Enterprise guide programatically</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Disconnect-server-from-SAS-Enterprise-guide-programatically/m-p/480217#M31162</link>
      <description>&lt;P&gt;I use the below Disconnect button to reset in SAS EG.&lt;/P&gt;
&lt;P&gt;How can i do it using SAS code?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Disconnect.PNG" style="width: 425px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21905i3CE764D51E61DF76/image-size/large?v=v2&amp;amp;px=999" role="button" title="Disconnect.PNG" alt="Disconnect.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2018 08:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Disconnect-server-from-SAS-Enterprise-guide-programatically/m-p/480217#M31162</guid>
      <dc:creator>FrancisDsa</dc:creator>
      <dc:date>2018-07-22T08:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect server from SAS Enterprise guide programatically</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Disconnect-server-from-SAS-Enterprise-guide-programatically/m-p/480219#M31163</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/49583"&gt;@FrancisDsa&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you need it to be done via code ?&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2018 08:18:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Disconnect-server-from-SAS-Enterprise-guide-programatically/m-p/480219#M31163</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2018-07-22T08:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect server from SAS Enterprise guide programatically</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Disconnect-server-from-SAS-Enterprise-guide-programatically/m-p/480220#M31164</link>
      <description>I am calling a standard macro which sets various libnames, macro variables on a trial folder. I would like it to reset it every time i use.&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%access(trl_id=6545);</description>
      <pubDate>Sun, 22 Jul 2018 08:23:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Disconnect-server-from-SAS-Enterprise-guide-programatically/m-p/480220#M31164</guid>
      <dc:creator>FrancisDsa</dc:creator>
      <dc:date>2018-07-22T08:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect server from SAS Enterprise guide programatically</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Disconnect-server-from-SAS-Enterprise-guide-programatically/m-p/480221#M31165</link>
      <description>&lt;P&gt;So it seems like we're dealing with two different things here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.) Starting and stopping a SAS Workspace Server&lt;/P&gt;
&lt;P&gt;2.) Setting some variables within the session once it running&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this correct ?&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2018 08:29:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Disconnect-server-from-SAS-Enterprise-guide-programatically/m-p/480221#M31165</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2018-07-22T08:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect server from SAS Enterprise guide programatically</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Disconnect-server-from-SAS-Enterprise-guide-programatically/m-p/480227#M31166</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/49583"&gt;@FrancisDsa&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;The ABORT statement would allow you to terminate a SAS Session programmatically within a SAS data step;&lt;/P&gt;
&lt;P&gt;There is also the global statement ENDSAS; which you just could issue at the end of your program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both these statement&amp;nbsp;are quite "brutal" and you'd normally only use them if something goes wrong and you really want to kill the session.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 392px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21906i9880AA5911C53386/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I understand it what you want to do is just to re-assign/recreate "stuff" whenever you call a specific macro.&lt;/P&gt;
&lt;P&gt;Ideally the macro code/logic does this for you. IF the macro hasn't build in logic to only issue commands if they haven't been issues already earlier in another call (=checks for macro variables and librefs already existing) then I'd assume if you just call the macro with another parameter&amp;nbsp;things work already as you need it.&lt;/P&gt;
&lt;P&gt;Sooo... What's the issue/the problem you need to solve?&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2018 11:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Disconnect-server-from-SAS-Enterprise-guide-programatically/m-p/480227#M31166</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-07-22T11:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect server from SAS Enterprise guide programatically</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Disconnect-server-from-SAS-Enterprise-guide-programatically/m-p/480261#M31169</link>
      <description>&lt;P&gt;Its a Standard macro controlled by a group which i cant change.&lt;/P&gt;
&lt;P&gt;It looks for a read only global macro variable.&lt;BR /&gt; %if %symexist(__dm_initial_sasautos__) %then %do;&lt;BR /&gt; %put MESS: ***** Macro &amp;amp;sysmacroname already run. Previous values are used;&lt;BR /&gt; %goto final_end;&lt;BR /&gt; %end;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The only way is to reset is to Disconnect SAS EG.&lt;BR /&gt;However i would like to use Standard macro and instead of asking enduser to Disconnect everytime you run, I would like to handle it programmatically&lt;/P&gt;
&lt;P&gt;%SYMDEL __dm_initial_sasautos__;(will not work)&lt;BR /&gt;%access(trl_id=6545);&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2018 20:30:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Disconnect-server-from-SAS-Enterprise-guide-programatically/m-p/480261#M31169</guid>
      <dc:creator>FrancisDsa</dc:creator>
      <dc:date>2018-07-22T20:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect server from SAS Enterprise guide programatically</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Disconnect-server-from-SAS-Enterprise-guide-programatically/m-p/480295#M31170</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/49583"&gt;@FrancisDsa&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Then I guess you've got only two options.&lt;/P&gt;
&lt;P&gt;A) Talk to the people maintaining this macro and ask if they could provide an additional parameter to allow for the macro to re-execute on request.&lt;/P&gt;
&lt;P&gt;B) Copy the macro code and change the logic to what you need it to be, then issue the macro code at the beginning of your program. That should compile it into WORK which comes quite early in the macro search path (SASAUTOS) so you should pick-up your macro version when calling it.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2018 23:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Disconnect-server-from-SAS-Enterprise-guide-programatically/m-p/480295#M31170</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-07-22T23:07:11Z</dc:date>
    </item>
  </channel>
</rss>

