In <listserv%[email protected]>, on 07/01/2011
   at 02:18 PM, Donald Likens <[email protected]> said:

>I have a situation where my subtask terminates and it seems it
>returns to somewhere in my program and starts executing my primary
>task (hard to believe isn't it).

In fact, I don't believe it. Perhaps you specified an end-of-task
exit.

>I want to check out my theory by determining in a dump where the 
>attachx is going to return to after I execute the BR 14 (and 
>return to attachx).

You're confused. ATTACHX returns to the next sequential instruction as
soon as it has added the new TCB to the task tree. R14 in the new task
will point to CVTEXIT, a location in the CVT containing an SVC 3. When
the subtask returns, the SVC 3 will handle end-of-task processing,
including posting an ECB or calling an exit if the ATACHX so
specified.

>I would also like to know where LINK(LINKX) 
>is returning to when I execute the BR 14 (and return to link).

Again, R14 will point to CVTEXIT. In this case SVC 3 will remove the
new PRB and control will resume under the old PRB, following the
LINK(X) macro invocation.
 
-- 
     Shmuel (Seymour J.) Metz, SysProg and JOAT
     ISO position; see <http://patriot.net/~shmuel/resume/brief.html> 
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)

----------------------------------------------------------------------
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

Reply via email to