Switches control from the current process to another process in your job. Format ATTACH process-name [/qualifier...]
1 – Command Qualifiers
1.1 /IDENTIFICATION
/IDENTIFICATION=pid Specifies the process identification (PID) of the process to which you want to attach the terminal. You can omit the leading zeros when you specify a PID. If you specify the /IDENTIFICATION qualifier, do not specify the process name parameter or the /PARENT qualifier. If you do not specify a qualifier, you must specify a process name.
1.2 /PARENT
Specifies that the process you want to attach to is the original (parent) process. If you specify the /PARENT qualifier, do not specify the process name parameter or the /IDENTIFICATION qualifier. If you do not specify a qualifier, you must specify a process name.
2 – Example
MAIL> SPAWN DTM REVIEW Collection name: MAIL_COLL Collection MAIL_COLL with 1 test was created on 29-JUL-85 15:13:54 by the command: CREATE COLLECTION MAIL_COLL MAIL_TEST "Recording MAIL on the terminal" Last review status = not previously reviewed Success count = 0 Unsuccessful count = 1 New test count = 0 Updated test count = 0 Comparisons aborted = 0 Test not run count = 0 Result Description MAIL_TEST Comparison Status : Unsuccessful DTM_REVIEW> ATTACH/PARENT You have 0 new messages. MAIL> This example uses the MAIL SPAWN command to create a subprocess executing a Digital Test Manager Review subsystem to review collection MAIL_COLL. The Review subsystem ATTACH command is then used to attach the terminal back to the mail session, the parent process.