If an "attached" task has terminated, there should be nothing in your dump 
related to it.  The BR 14 in the task should branch to an operating system 
routine to post the ECB and perform the appropriate housekeeping.  The only 
thing in your dump should be the ECB.  The mother and daughter tasks both 
compete for execution time independently.  The code following the ATTACH(X) 
macro can execute before or after any portion of the attached task.  If you 
need the mother task to wait on the daughter, it is your responsibility to WAIT 
on the ECB.

If a "linked" routine follows normal save area conventions, then in the save 
area you passed it in R13 you should be able to find the contents of R14.  This 
is where the BR 14 instruction should return if you remembered to restore the 
registers before branching.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
Donald Likens
Sent: Friday, July 01, 2011 12:18 PM
To: [email protected]
Subject: Real return address for link and attach

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). 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). I would also like to know where LINK(LINKX) 
is returning to when I execute the BR 14 (and return to link). Please 
help.

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