Written by

Question Paul Riker · Nov 20, 2017

SQL to analyze processes by config

Does anyone know how to return the sys.process table with the corresponding configname item for each process? Also, is there a key for the Job Type field? 

Comments

Marc Mundt · Nov 20, 2017

 %syPidtab.inc includes a list of Job Types and their corresponding IDs.

By "configname", are you referring to Ensemble production items or something else?

0
Paul Riker  Nov 20, 2017 to Marc Mundt

Ensemble production items. I want to know the relationship between processes and production items. 

0
John Murray  Nov 21, 2017 to Paul Riker

I'd be interested to hear why you want to know this.

0
Marc Mundt · Nov 20, 2017

You can use the Enumerate stored procedure in the Ens.Job class to get a list of running Ensemble jobs (config items) in the current namespace. If you need to get other system level details about the process, the "job" field is the same as the process id from %SYS.ProcessQuery.
From a SQL query tool you can call it with:
call Ens.Job_Enumerate()
From my earlier comment: %syPidtab.inc includes a list of Job Types and their corresponding IDs.

0