Isn't that similar to the JES3 IATXCSF macro?

Lennie Dymoke-Bradshaw
https://rsclweb.com 
‘Dance like no one is watching. Encrypt like everyone is.’


-----Original Message-----
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Ed 
Jaffe
Sent: 13 June 2022 20:54
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Is there a service similar to TCTL so that a task can give control 
to another task?

On 6/13/2022 9:21 AM, Binyamin Dissen wrote:
> Is there a service similar to TCTL so that a task can give control to 
> another task?

We wrote our own. If you issue this internal macro (let's call it SUBTASK), the 
next instruction after the macro is running in a subtask. 
If you issue SUBTASK again, the next instruction is back in the original task. 
We have a similar macro to pass control to an enclave SRB and back.

In our case, it's intended to be used like a subroutine call -- the macro calls 
must appear in pairs -- so it's not quite as general-purpose as TCTL, but I'm 
sure than can be done too...

     .
     . main-task code
     .
     SUBTASK TCB=tcbaddr
     .
     . subtask code
     .
     SUBTASK ,
     .
     . resume main-task code
     .

--
Phoenix Software International
Edward E. Jaffe
831 Parkview Drive North
El Segundo, CA 90245
https://www.phoenixsoftware.com/


--------------------------------------------------------------------------------
This e-mail message, including any attachments, appended messages and the
information contained therein, is for the sole use of the intended
recipient(s). If you are not an intended recipient or have otherwise
received this email message in error, any use, dissemination, distribution,
review, storage or copying of this e-mail message and the information
contained therein is strictly prohibited. If you are not an intended
recipient, please contact the sender by reply e-mail and destroy all copies
of this email message and do not otherwise utilize or retain this email
message or any or all of the information contained therein. Although this
email message and any attachments or appended messages are believed to be
free of any virus or other defect that might affect any computer system into
which it is received and opened, it is the responsibility of the recipient
to ensure that it is virus free and no responsibility is accepted by the
sender for any loss or damage arising in any way from its opening or use.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to