PCA$HELP.HLB  —  ATTACH  Examples
  PCAC> SPAWN            ! Spawn subprocess NICK_1
  $ TYPE FOO.DAT         ! Enter DCL commands in subprocess
  text line in foo.dat
  $ ATTACH NICK          ! Attach to original process
  %PCA-I-RETURNED, control returned to process NICK
  PCAC> SHOW LANGUAGE    ! Enter Collector commands
  Language: PASCAL
  PCAC> ATTACH NICK_1    ! Attach back to subprocess
  %PCA-I-ATTACHED, terminal now attached to process NICK_1
  $

      In this example, a subprocess is created with the Collector
      SPAWN command. DCL commands are executed in the subprocess.
      An ATTACH command at DCL level reattaches the terminal to
      the Collector session. The Collector session continues with
      additional Collector commands until a Collector ATTACH command
      is entered. This ATTACH command connects the terminal to the
      subprocess again so that more DCL commands can be entered.
Close Help