<?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 can we capture any events (or run a script) at compute pod end? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/can-we-capture-any-events-or-run-a-script-at-compute-pod-end/m-p/954881#M29443</link>
    <description>&lt;P&gt;We run Viya 4 (on AWS EKS) with backend Redshift. Our users run mostly SAS Studio and creating compute sessions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any possibility that at the end of the compute session(pod), we can capture any event or run a script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2025 04:49:38 GMT</pubDate>
    <dc:creator>drahorg</dc:creator>
    <dc:date>2025-01-02T04:49:38Z</dc:date>
    <item>
      <title>can we capture any events (or run a script) at compute pod end?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/can-we-capture-any-events-or-run-a-script-at-compute-pod-end/m-p/954881#M29443</link>
      <description>&lt;P&gt;We run Viya 4 (on AWS EKS) with backend Redshift. Our users run mostly SAS Studio and creating compute sessions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any possibility that at the end of the compute session(pod), we can capture any event or run a script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 04:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/can-we-capture-any-events-or-run-a-script-at-compute-pod-end/m-p/954881#M29443</guid>
      <dc:creator>drahorg</dc:creator>
      <dc:date>2025-01-02T04:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: can we capture any events (or run a script) at compute pod end?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/can-we-capture-any-events-or-run-a-script-at-compute-pod-end/m-p/955752#M29472</link>
      <description>&lt;P&gt;Interesting question&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/448272"&gt;@drahorg&lt;/a&gt;&amp;nbsp; !&amp;nbsp; There is only a configuration property for &lt;A href="https://documentation.sas.com/doc/en/sasadmincdc/default/calsrvpgm/n1jb3fo13t6cdbn16dv8dtfbox7v.htm#p00u0jejn9a456n1l1sjvvo0oys6" target="_self"&gt;&lt;STRONG&gt;startup commands&lt;/STRONG&gt;&lt;/A&gt;, not the equivalent for "termination" commands. However, the TERMSTMT SAS System option is available (&lt;A href="https://documentation.sas.com/doc/fr/pgmsascdc/default/lesysoptsref/n0rjd82dx13qi7n1mw6rsljm7x1o.htm" target="_self"&gt;link )&lt;/A&gt;&amp;nbsp;Therefore you can try to run a script using this if you choose to enable System commands . I haven't tried so testing will be all yours.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 16:36:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/can-we-capture-any-events-or-run-a-script-at-compute-pod-end/m-p/955752#M29472</guid>
      <dc:creator>ronan</dc:creator>
      <dc:date>2025-01-10T16:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: can we capture any events (or run a script) at compute pod end?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/can-we-capture-any-events-or-run-a-script-at-compute-pod-end/m-p/956586#M29513</link>
      <description>&lt;P&gt;Hi there&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/448272"&gt;@drahorg&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;indeed, as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1540"&gt;@ronan&lt;/a&gt;&amp;nbsp;said, I also think it is a very interesting question!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First things that come to my mind would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1- &lt;STRONG&gt;SAS Enterprise Session Monitor (ESM)&lt;/STRONG&gt;: which can help you to monitor all SAS sessions, the status, termination status, HW resource consumption, etc. It is pretty neat!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2- &lt;STRONG&gt;Create a wrap of the SAS process (sas.exe/sas.sh)&lt;/STRONG&gt;: I would not really recommend it, as it would not be a solution supported by SAS. However, from a programmer point of view, it would be the only option that comes to my mind to be able to add/modify features not included by default. Not saying it would be easy, and as I said, I would not recommend it. Plus it would force you to modify the SAS-provided images... again, I would not recommend it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3- &lt;STRONG&gt;For batch calls&lt;/STRONG&gt;, there are ways to put the chain of SAS calls and check termination of code and put code in between. For interactive processes, that would be more challenging.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jan 2025 17:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/can-we-capture-any-events-or-run-a-script-at-compute-pod-end/m-p/956586#M29513</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2025-01-19T17:22:49Z</dc:date>
    </item>
  </channel>
</rss>

