SVC 062

The DETACH macro, SVC 062, removes from the system a subtask created with the ATTACH (SVC 042) macro.

SVC 062 is a Type 2 SVC that gets a LOCAL lock and calls program IGC062 in load module IEAVEED0.

The system automatically removes any terminated subtasks created with ATTACH without specifying those parameters. If a task attaches a subtask with ECB or ETXR, the originating task must detach the subtask before terminating.

SVC 062, DETACH, can only be issued for subtasks created by the active task.

Reference Sources

IBM z/OS MVS Diagnosis Reference

IBM z/OS MVS Programming Assembler Services Guide

IBM z/OS MVS Programming Assembler Services Reference Vol. 1