LATCP$HELP.HLB  —  ATTACH
    Transfers control from your current process to the specified
    process. The LATCP ATTACH command is similar to the DCL ATTACH
    command. For example, from the DCL command level you can enter
    the DCL SPAWN command to create a LATCP subprocess without ending
    your DCL session, execute several LATCP commands at the LATCP
    prompt, then use the ATTACH command to return to DCL.

    Format

      ATTACH  [process-name]

1  –  Parameter

 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.

    Process names can contain from 1 to 15 alphanumeric characters.
    If a connection to the specified process cannot be made, LATCP
    displays an error message.

    If you specify the /PID qualifier, do not use the process name
    parameter. If you omit the /PID qualifier, you must use the
    process name parameter.

    To display processes, use the DCL SHOW SYSTEM command.

2  –  Qualifier

2.1    /PID

       /PID=pid

    Specifies the process identification (PID) of the process that
    will have terminal control. When you specify a PID, you can omit
    the leading zeros. If you specify a PID, do not use the process
    name parameter. If you omit the PID qualifier, you must use the
    process name parameter.

3  –  Example

  $ SET PROCESS/NAME="TOP_LEVEL"
  $ SPAWN RUN SYS$SYSTEM:LATCP
  LATCP> SHOW NODE/ALL
     .
     .
     .
  LATCP> ATTACH "TOP_LEVEL"
  $

      In this example, the user enters the DCL SPAWN command to
      create a LATCP subprocess and uses LATCP to display the status
      of all nodes known to the local node. After using LATCP, the
      user enters the ATTACH command to return to the DCL command
      level.
Close Help