<?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: Kill SAS Session via HTML in a Stored Process in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Kill-SAS-Session-via-HTML-in-a-Stored-Process/m-p/404704#M98371</link>
    <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/43025"&gt;@error_prone&lt;/a&gt;&amp;nbsp;said this wouldn't be a good idea even if it were possible. One of the big advantages of running a SAS Stored Process Server is that you effectively have a pool of available sessions which will be used to quickly execute Stored Processes without the start-up costs associated with creating new sessions. My advice would be the same as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/43025"&gt;@error_prone&lt;/a&gt;&amp;nbsp;- just leave well alone, they won't be using much resource until you need them.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2017 08:11:46 GMT</pubDate>
    <dc:creator>ChrisBrooks</dc:creator>
    <dc:date>2017-10-17T08:11:46Z</dc:date>
    <item>
      <title>Kill SAS Session via HTML in a Stored Process</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kill-SAS-Session-via-HTML-in-a-Stored-Process/m-p/363760#M86175</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to kill my SAS Session in an alert message created by my Stored Process Output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently i have this macro:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%macro output(output_tp);&lt;BR /&gt;&lt;BR /&gt;%if &amp;amp;output_tp = 1 %then %do;&lt;BR /&gt; DATA _NULL_;&lt;BR /&gt; file _webout ;&lt;BR /&gt; val = '&amp;lt;script type="text/JavaScript"&amp;gt; if (confirm("Adhoc Loading, do you wish to abort the process?"))&lt;BR /&gt; { &lt;BR /&gt; alert("Process Terminated");&lt;BR /&gt; }&lt;BR /&gt; &amp;lt;/script&amp;gt;';&lt;BR /&gt; put val;&lt;BR /&gt; run;&lt;BR /&gt; %end;&lt;BR /&gt;&lt;BR /&gt;%mend output;&lt;BR /&gt;&lt;BR /&gt;%output(1);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the alert "Process Terminated" i would like to execute something like &amp;nbsp;&lt;EM&gt;x "kill -9 &amp;amp;SYSJOBID"&lt;/EM&gt; but i don't know how to do it inside HTML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using 9.3 in Solaris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Best regards and thanks a lot for your help,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Carlos Francisco&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 11:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kill-SAS-Session-via-HTML-in-a-Stored-Process/m-p/363760#M86175</guid>
      <dc:creator>CarlosFrancisco</dc:creator>
      <dc:date>2017-06-02T11:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Kill SAS Session via HTML in a Stored Process</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kill-SAS-Session-via-HTML-in-a-Stored-Process/m-p/404699#M98370</link>
      <description>&lt;P&gt;The good news: You can't do this inside html. The corresponding sas-process has not been started just for the job you are terminating. The process will be re-used to run other stored processes and eventually be killed after some time of inactivity - depends on configuration. Using endsas command inside stored process code is not recommended.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 07:58:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kill-SAS-Session-via-HTML-in-a-Stored-Process/m-p/404699#M98370</guid>
      <dc:creator>error_prone</dc:creator>
      <dc:date>2017-10-17T07:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Kill SAS Session via HTML in a Stored Process</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kill-SAS-Session-via-HTML-in-a-Stored-Process/m-p/404704#M98371</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/43025"&gt;@error_prone&lt;/a&gt;&amp;nbsp;said this wouldn't be a good idea even if it were possible. One of the big advantages of running a SAS Stored Process Server is that you effectively have a pool of available sessions which will be used to quickly execute Stored Processes without the start-up costs associated with creating new sessions. My advice would be the same as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/43025"&gt;@error_prone&lt;/a&gt;&amp;nbsp;- just leave well alone, they won't be using much resource until you need them.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 08:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kill-SAS-Session-via-HTML-in-a-Stored-Process/m-p/404704#M98371</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-10-17T08:11:46Z</dc:date>
    </item>
  </channel>
</rss>

