Perhaps you will be able to find what you’re looking for, however, what I’ve seen has
PgmA write a value into a Data area when it starts and clear the area when it’s done.
PgmB checks the area and only continues if it’s clear.
Of course PgmA could lock an object like a dtaara and when PgmB attempts to lock it, it would
discover that the object was locked, then it’s just a matter of determining what job is locking