Thank you all for your replies. Peter thanks for confirming my original TCBECB question.
I decided to solve the problem by creating an ETXR "stub" routine that is less than 128 bytes long. The stub is copied to the end of each subtask's context area. Each instance of a subtask get passed this context area by the main task. When a subtask ends, the ETXR stub is given control by the system, the stub then calculate address the start of the context area by with some simple arithmetic. The Context area contains the address of the real ETXR, the stub uses this address to BAKR to the real ETXR to perform all necessary cleanup. Regards, Vic ---------------------------------------------------------------------- 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

