Hi 

 

I know system 23E is for invalid TCB it seems to me that TCB is valid could
any confirm that the following is the correct sequence of step to terminate
a TASK

I have 4 tasks I do an  ATTACH  with ECB =,  SYSECB is the ECB, I am  using
END_ECB I use to tell the subtask to return via BR 14

 

Thanks

DETACH_LOOP DS  0H                               

*                                                

         L    R1,END_ECB                         

*                                                

         POST (R1)               Post it         

*                                                

*                                                

         WAIT ECB=SYSECB                         

                                                 

         MVI  TASK_ADDR,X'00'                    

*                                                

         DETACH TASK_ADDR                        

*                                                

*                                                

*                                                

         LA   R7,THREAD_LEN(,R7)    Next         

         BCT  R6,DETACH_LOOP                     

*                                                

*                                                

 


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to