Creates a subprocess of the current process. The context of the subprocess is copied from the current process. You can use the SPAWN command to leave EFI$CP temporarily, perform other functions (such as reading your mail), and then return to EFI$CP. Format SPAWN [command]
1 – Parameter
command Specifies the DCL command string that executes in the created subprocess. When the command completes, the subprocess terminates and control is returned to the parent process. If this parameter is not specified, a subprocess is created that transfers control to the DCL command level.
2 – Qualifiers
2.1 /INPUT
/INPUT=filespec Specifies an input file containing one or more DCL command strings to be executed by the spawned subprocess. If you specify a command string along with an input file, the command string is processed before the commands in the input file. After processing is complete, the subprocess is terminated.
2.2 /LOGICAL_NAMES
/LOGICAL_NAMES (default) /NOLOGICAL_NAMES Specifies whether the logical names of the parent process are copied to the subprocess. When you do not want the subprocess to use the logical names of the parent process, enter the qualifier /NOLOGICAL_NAMES.
2.3 /OUTPUT
/OUTPUT=filespec Identifies the output file to which the results of the SPAWN operation are written. If you omit the /OUTPUT qualifier, output is written by default to the current SYS$OUTPUT device. Whenever you use the /NOWAIT qualifier, you should also use the /OUTPUT qualifier to specify a new output destination. Doing so prevents output from being displayed on your terminal while you are entering
2.4 /PROCESS
/PROCESS=subprocess-name Specifies the name of the subprocess. The default name of the subprocess is USERNAME_n.
2.5 /SYMBOLS
/SYMBOLS (default) /NOSYMBOLS Determines whether the system passes DCL global and local symbols to the subprocess. The default is /SYMBOLS.
2.6 /WAIT
/WAIT (default) /NOWAIT Controls whether EFI$CP waits until the subprocess is completed before allowing more EFI$CP commands to be entered. The /NOWAIT qualifier allows you to enter new EFI$CP commands while the specified subprocess is running. If you specify /NOWAIT, you should also use the /OUTPUT qualifier to direct the output stream to a file rather than to your terminal. Doing so prevents your terminal from being used by more than one process simultaneously. EFI$CP> SPAWN $ SHOW TIME $ LOGOUT Process DJONES_1 logged out at 25-APR-2003 16:59:17.37 EFI$CP>