The JCL has code functions to terminate another process, and retrieve a list of processes if that's what you're after. I messed with it once a few years back.