BookmarkSubscribeRSS Feed
drahorg
Fluorite | Level 6

We run Viya 4 (on AWS EKS) with backend Redshift. Our users run mostly SAS Studio and creating compute sessions. 

 

Is there any possibility that at the end of the compute session(pod), we can capture any event or run a script?

 

Thanks a lot,

2 REPLIES 2
ronan
Lapis Lazuli | Level 10

Interesting question @drahorg  !  There is only a configuration property for startup commands, not the equivalent for "termination" commands. However, the TERMSTMT SAS System option is available (link ) 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. 

JuanS_OCS
Azurite | Level 17

Hi there @drahorg ,

 

indeed, as @ronan said, I also think it is a very interesting question!

 

First things that come to my mind would be:

 

1- SAS Enterprise Session Monitor (ESM): which can help you to monitor all SAS sessions, the status, termination status, HW resource consumption, etc. It is pretty neat! 

 

2- Create a wrap of the SAS process (sas.exe/sas.sh): 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.

 

3- For batch calls, 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.

 

 

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 2051 views
  • 2 likes
  • 3 in conversation