I was reading about Scheduling SRBs using IEAMSCHD and discovered the TCTL macro.
The TCTL (transfer control) macro allows an SRB routine to exit from its processing and to pass control to a task with minimal system overhead. When an SRB specifies RESUME RETURN=N, control transfers to the resumed TCB. Control then passes to the top RB on the TCB/RB chain, but only if the system determines that the RB is dispatchable. Again this is a curosity question and I have nop real reason to use TCTL. Am I to understand that the TCB needs to be in a WAIT state ? When the resumed routine finishes executing under the TCB should it re-enter the WAIT state again ? Its not clear to me how this facility should work. Can Some one explain the mechanics behind using TCTL and the target Task Control Block. Paul D'Angelo ---------------
