Hello
This can be done in multiple ways. Some of them are listed. Which approach works for you, depends on your exact situation.
The list is by no means exhaustive.
1,With process ID or user name we can identify user session at the OS level (Windows task manager ot top/htop or ps aux on UNIX/Linux). This way the user session can be monitored/killed. We can use the memory consumption/cpu consumption. Without PID but only username due diligence needed.
2.If SAS program is being executed in the SAS EG, then you can have an idea of the step running.
3.if the log is being directed to an external log file and it is on UNIX or Linux, one can use tail -f to view the log as the code progresses. This approach gives the best method to monitor the program as it progresses.
On windows I understand Powershell can be used to provide such a facility.
4. have a look at the following resources which give more information.
https://support.sas.com/resources/papers/proceedings10/279-2010.pdf
https://blogs.sas.com/content/sasdummy/2009/05/26/tracking-progress-in-sas-programs-in-sas-enterpris...
https://blogs.sas.com/content/sasdummy/2016/02/20/proc-iomoperate-custom-task/