If I understand the posts, they so far have all been somewhat incorrect. The ECB is posted upon termination of the subtask rather than when DETACH is issued (though of course DETACH of a running task will lead to its termination). The subtask "program" is freed at termination of the subtask.
When ECB or ETXR is provided on the ATTACh, the TCB assocated with that subtask is not freed until DETACH is done. This is the typical sequence: -- ATTACH with ECB -- attacher waits on ECB -- subtask terminates (program is removed from storage, ECB is posted) -- attacher does DETACH Peter Relson z/OS Core Technology Design ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

