VMS Help  —  DEFRAGMENT  ATTACH
    The ATTACH subcommand transfers control from your current process
    (which then hibernates) to the specified process.

    Format

      DEFRAGMENT ATTACH  { process-name } [ /QUALIFIERS ]

1  –  Parameters

 process-name

    The process-name specifies the name of a process 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.

2  –  Restrictions

    o  The ATTACH command cannot be used if your terminal has an
       associated mailbox.

    o  You cannot use the process-name parameter with the
       /IDENTIFICATION qualifier.

    o  You must supply either a process name or a PID for this
       command.

3  –  Qualifiers

3.1    /IDENTIFICATION

       /IDENTIFICATION=pid

          /IDENTIFICATION lets you specify the process
          identification (PID) of the process to which terminal
          control will be transferred. Leading zeros can be
          omitted.

4  –  Examples

    The following examples show how you can use the ATTACH command.

    1.

    $ DEFRAGMENT ATTACH JONES_2

    This ATTACH command transfers the terminal's control to the
    subprocess named JONES_2.

    2.

    $ DEFRAGMENT ATTACH /IDENTIFICATION=2A401A1B

    This ATTACH command switches control from the current process to
    the process whose PID is 2A401A1B.
Close Help