I know for a fact that DETACH causes (via some route) the ECB to be posted. I always WAIT on the ATTACH ECB and it always works.
Whether that WAIT is superfluous or not is something I have no way of testing. I believe you (of course!) but the WAIT is harmless at worst so I think I will leave it in place. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Peter Relson Sent: Friday, July 31, 2020 7:15 AM To: [email protected] Subject: Re: ESTAEX exit WAIT question 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 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
