SVC 62 (0A3E)

DETACH macro - is type 2, gets LOCAL lock.

Calls module IEAVEED0, entry point IGC062.

GTF data is:
R15 and R0
No applicable data.
R1
Address of the fullword containing the address of the subtask TCB to be detached. If bit 0 = 1, STAE=YES was specified. This affects the abend code with which an incomplete subtask is abended. If STAE=YES the code is 33E, otherwise it is 13E.
     
DETACH TCB hhhhhhhh Address of the subtask TCB to be detached.
Note: If R1 contains zeros, the DETACH TCB field is meaningless, and the issuer of SVC 62 will be abended with code 23E.

Register contents on return:

R15
00 - successful completion

04 - an incomplete subtask was detached with STAE=YES specified; DETACH processing successfully completed