If I remember correctly, DETACH of a subtask does not return to the 
invoker until that task has completely terminated (and I mean completely 
-- all resmgrs have run, the TCB is freemained). If so, there is no reason 
to have an ECB to wait upon. In fact I think the ATTACH ECB is not even 
used once DETACH is done. (I'm hoping that my thought does not pertain 
only to the branch-entry DETACH that RTM does, but also pertains to the 
SVC-entry DETACH that you would be doing.)

If you want your recovery to
-- end the task
-- upon end, attach a new task
then
-- detach
-- attach

Peter Relson
z/OS Core TEchnology Design


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to