I have a few different scenarios where I would like to code a series of jobs (Block B) that will be called from an application (A)
Essentially, A does work, triggers B, waits for B to complete, and then resumes processing
One way to do this would be to use a depletable resource and have B set AVAIL(1).
I've also seen a suggestion about using SUBAPP and INVOKE, but that would probably not work if I need to have Application A call Block B several times.
Any other suggestions?