INCLUDE [ HP SYSTEM DICTIONARY XL SDMAIN ] MPE/iX 5.0 Documentation
HP SYSTEM DICTIONARY XL SDMAIN
INCLUDE
Causes SDMAIN to temporarily stop reading its input from the current
input device or file and start reading input from the specified file.
Syntax
IN[CLUDE] include-file-name .
Parameters
include-file-name Name of the file from which to read input.
Description
When the end of file is reached, SDMAIN goes back to the previous input
device or file for input.
Within an include file, you can have other INCLUDE commands and macro
calls. After a macro call is expanded, SDMAIN executes the expanded
macro as if it is an include file. The maximum number of nested levels
of input at any one time using INCLUDE commands or macro calls is 20.
When executing a file specified by the INCLUDE command, the EDIT command
and the REDO command are not allowed. Also, attribute prompting is not
performed at this time.
Commands are echoed to $STDLIST as they are executed from within the
include file.
The INCLUDE command itself is not written to the log file, but each
command read from the include file for processing is written to the log
file as if it were being entered interactively.
If you enter INCLUDE $STDIN or INCLUDE $STDINX, you can return to the
previous level by issuing the MPE command :EOD.
Open Mode: Any
Scope: Any
Example
The following example specifies the file file1 to be the input file. The
next command processed by the system is read from file1.
>INCLUDE file1.
>
MPE/iX 5.0 Documentation