PCA Command Passes control of your terminal from your current process to another process. Format ATTACH process-name
1 – Parameters
process-name Specifies an existing process to which you want to attach the terminal. If the process name includes spaces, enclose the name in quotation marks.
2 – Description
The ATTACH command allows you to connect your terminal to another process. Using the ATTACH command, you can switch control back and forth between several different active processes. To create additional processes, use the SPAWN command from within PCA or at DCL level.
3 – 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.