Library /sys$common/syshlp/mailhelp.hlb  —  ATTACH
    Switches control of your terminal from your current process to
    another process.

    The ATTACH command allows you to move between processes that you
    create with the SPAWN command. For example, while you are editing
    a file, use the SPAWN command to move to a subprocess (Mail) to
    read a new mail message. Then enter ATTACH to move back to the
    editing session. If you want to read another new mail message,
    enter the ATTACH command to move back to the Mail subprocess you
    already created.

    Format

      ATTACH  [process-name]

1  –  Parameter

 process-name

    Indicates the name of the subprocess to which you want to
    connect. If the subprocess name contains spaces, special
    characters, or lower-case letters, then the subprocess name must
    be enclosed in quotation marks.

2  –  Qualifier

2.1    /PARENT

    Indicates that you want to attach to the parent process of your
    current process. If you did not access the Mail utility by using
    the SPAWN command, Mail displays an error message. You cannot
    specify the process-name parameter with the /PARENT qualifier.

3  –  Examples

    1.$ EDIT VACATION.TXT
         .
         .
         .
 <Do>

      Command: SPAWN MAIL
      MAIL> READ
         .
         .
         .
      MAIL> ATTACH MAGNANI
         .
         .
         .
 <Do>

      Command: SPAWN MAIL
      MAIL>

      This example shows how to spawn a subprocess (MAGNANI_1) to
      invoke Mail and use the ATTACH command to move between Mail
      (MAGNANI_1) and a DECTPU editing session (MAGNANI). The ATTACH
      command allows you to transfer control between subprocesses.

                                   NOTE

       Always enter the SPAWN command to create a new process and
       the ATTACH command to connect to a process that already
       exists. For more information on the SPAWN and ATTACH
       commands, exit from Mail and enter HELP SPAWN or HELP ATTACH
       at the DCL prompt.
Close Help