DATA Step, Macro, Functions and more

How to get the name of process owner by PID

Reply
New Contributor
Posts: 2

How to get the name of process owner by PID

[ Edited ]

In SAS Management Console you can find the table with PIDs of running processes on server (Server Manager -> SASApp (for example) -> Logical Workspace Server). By clicking on some process we'll find out the name of the owner (who started the process), host and entry time.

If I have the PID, can I get the name automatically (SAS code/program)?

Senior User
Posts: 1

Re: How to get the name of process owner by PID

[ Edited ]

Hi Alex,

 

I think that what your migth be looking for is the iomoperate procedure.

This procedure let you connect to the object spawner and get the pid, owner and other infos on every sas session.

Please check the documentation here - SAS 9.3.

 

 

 

New Contributor
Posts: 2

Re: How to get the name of process owner by PID

Thanks for the reference. Due to his program I can find the process owner. But all processes have the same owner - srv_d_sas. It's logical but I need to get the user name that looks like, for example, user1@domain
Ask a Question
Discussion stats
  • 2 replies
  • 423 views
  • 2 likes
  • 2 in conversation