Switches control from your 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 your 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 your 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 . . . DTM> ATTACH/PARENT You have 0 new messages. MAIL> This example uses the OpenVMS Mail Utility (MAIL) command SPAWN to create a subprocess running Digital Test Manager. The Digital Test Manager ATTACH command is then used to attach the terminal back to the MAIL session, the parent process.