HELPLIB.HLB  —  DISCONNECT
    Breaks the connection between a physical terminal and a virtual
    terminal. After the physical terminal is disconnected, both the
    virtual terminal and the process using it remain on the system.

    Requires that your physical terminal is connected to a virtual
    terminal.

    Format

      DISCONNECT

1  –  Qualifier

1.1    /CONTINUE

       /CONTINUE
       /NOCONTINUE (default)

    Controls whether the CONTINUE command is executed in the current
    process just before connecting to another process. This procedure
    permits an interrupted image to continue processing after the
    disconnection until the process needs terminal input or attempts
    to write to the terminal. At that point, the process waits until
    the physical terminal is reconnected to the virtual terminal.

2  –  Examples

    1.$ DISCONNECT

      This command disconnects a physical terminal from a virtual
      terminal, but does not log the process out. Now you can use the
      physical terminal to log in again.

    2.$ RUN PAYROLL
 <Ctrl/Y>

      $ DISCONNECT/CONTINUE

      In this example, the RUN command is entered from a physical
      terminal that is connected to a virtual terminal. After the
      image PAYROLL.EXE is interrupted, the DISCONNECT command
      disconnects the physical and the virtual terminals without
      logging out the process. The /CONTINUE qualifier allows the
      image PAYROLL.EXE to continue to execute until the process
      needs terminal input or attempts to write to the terminal. At
      that point, the process waits until the physical terminal is
      reconnected to the virtual terminal; however, you can use the
      physical terminal to log in again and perform other work.
Close Help