Switches control of your terminal from your current process to another
process.
Format:
ATTACH [PROCESS-NAME] /IDENTIFICATION=pid
Qualifiers Defaults
/IDENTIFICATION=pid /NOIDENTIFICATION
1 – Parameters
process-name
Specifies the name of a parent process or spawned subprocess to
which control passes. The process must already exist, be part
of your current job, and share the same input stream as your
current process. However, the process cannot be your current process
or a subprocess created with the /NOWAIT qualifier.
Process names can contain from 1 to 15 alphanumeric characters.
If a connection to the specified process cannot be made, an
error message is displayed.
The process-name argument is incompatible with the
/IDENTIFICATION qualifier.
2 – Qualifiers
2.1 /IDENTIFICATION
/IDENTIFICATION
/NOIDENTIFICATION (default)
Specifies the process identification (PID) of the process to
which terminal control will be transferred. Leading zeros can
be omitted. The /IDENTIFICATION qualifier is incompatible with
the process-name argument.
If you omit the /IDENTIFICATION qualifier, you must specify a
process name.