I've done the same thing in past implementations, but I used multiple
ECB's that the mother task and daughter task used to communicate results
and orders back and forth. I would post one of those "other" ECB's to
tell the subtask to shut down and when the ECB in the ATTACH parm list
was posted, then I detached the daughter task.
Rick
--------------------------------------------------------------------------------
Joe Reichman wrote:
Since my subtask are waiting for work I post them to terminate
This automatically sets 40 bit on and clears the ECB
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Peter Relson
Sent: Monday, July 05, 2010 9:43 PM
To: [email protected]
Subject: Re: ECB parameter on attach
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
----------------------------------------------------------------------
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
.
----------------------------------------------------------------------
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