05-31-2016 09:14 PM
ERROR: Lock held by process 346
I'd like to know directly who is using the Dataset and not the JOB_ID
Is it possible to retrieve like: "Lock held by user 1234" (that &SYSUSERID macro variable)??
06-01-2016 01:46 AM
06-01-2016 02:04 AM
You will need to use OS tools enabled to do this.
To do it manually, log on to the server with ssh and use something like ps -ef|grep processnumber
To do it automatically in SAS, you MUST have XCMD enabled.
My preferred method to avoid this is to physically delete the target dataset file using OS commands (works on UNIX like a charm) before writing it.