What are you trying to accomplish?
If you have a CL program like this:
/* Did program A finish OK */
IF PGMA = ‘OK’
/* other commands here */
When PGM-A is called, it will run until completed and control will automatically retunr to this the original program.
If PGM-A had any errors, it would crash unless you had MONMSG to capture error. IF you need to know if that happened, you would need to set a variable and return that to the calling program.
If PGM-B is running and you want to know if it is past the call to PGM-A, you can do a WRKJOB and take option 11 to see the call stack.