Previous | Next | Contents | Index |
Switch terminal control to another process in your job.
ATTACH [process-name]
Qualifiers Defaults /PARENT See text
process-name
Optional parameter specifying the name of the process to which to switch.
With the ATTACH command you can switch terminal control between processes that you have created with the SPAWN command.
/PARENT
Attach to the parent process of your current process. This qualifier cannot be used in conjunction with the process-name parameter.
One common use of the ATTACH command is to move between a process running an editor and a process reading mail. The ATTACH command lets you repeatedly leave PMDF MAIL without having to exit and restart PMDF MAIL every time.
In the above example, the editing session is interrupted by typing CTRL/Y, and a subprocess running PMDF MAIL is created. After reading some new messages, the ATTACH command is then used to return to the parent process where the editing session is resumed. After again exiting the editor, the DCL ATTACH command is then used to resume the mail reading session.
$ EDIT WORK.TXT . . . ^Y $ SPAWN PMDF MAIL %DCL-S-SPAWNED, process MROCHEK_1 spawned %DCL-S-ATTACHED, terminal now attached to process MROCHECK_1 EMAIL> READ/NEW . . . MAIL> ATTACH/PARENT %DCL-S-RETURNED, control returned to process MROCHECK . . . ^Y $ ATTACH MROCHECK_1 EMAIL>
Previous | Next | Contents | Index |