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.