I have a couple of simple queries that I run at least once per week for various application support folks.
1) Returns the children of a parent workflow matching 'OH_Name':
SELECT OH_Name, JPP_Object, JPP_Alias, JPP_WElse, JPP_PreCnt,
JPP_Row, JPP_Col, JPP_Active
FROM JPP, OH
WHERE OH_Name LIKE '%ETL%'
AND OH_OType = 'JOBP'
AND JPP_Object <> 'START'
AND JPP_OH_Idnr = OH_Idnr
AND OH_Client = 7000
AND OH_deleteflag = 0
ORDER BY OH_Name, JPP_Object
2) Returns the parent of child workflows matching 'JPP_Object'
SELECT OH_Name, JPP_Object, JPP_Alias, JPP_WElse, JPP_PreCnt,
JPP_Row, JPP_Col, JPP_Active
FROM JPP, OH
WHERE JPP_Object LIKE '%&WFG#%'
AND JPP_OH_Idnr = OH_Idnr
AND OH_Client = 7000
AND OH_deleteflag = 0
ORDER BY OH_Name, JPP_Object
I write the results to a csv file and publish it to an ECC dashboard where the app support folks can get to it.
(Wolfgang, thanks for the hint about querying JPPA also. I'll have to look at that.)