Enform Plus Reference Manual
Running Enform Plus
Enform Plus Reference Manual—422684-001
2-3
Noninteractive Mode
?SOURCE command can be used to execute the source code created in the Edit process.
These commands are described in Section 6, Commands.
Exit interactive mode by entering the EXIT statement, the ?EXIT command, or by
pressing the Ctrl and Y terminal keys simultaneously.
Noninteractive Mode
Enform Plus functions in noninteractive mode when commands and statements are
entered through an input file other than a terminal. The input file can be an Edit-format
file or a compiled query file. For example:
nn> ENFORM /IN input-filename, OUT output-filename/
In this example, Enform Plus reads the commands and statements from the input file.
When Enform Plus functions in noninteractive mode, all commands, statements, and
clauses must be part of the input file. When the file specified in the IN option is a
compiled query file, values for parameters can be specified by using the PARAM
command of TACL prior to the ENFORM command. More information about passing
parameters to compiled Enform Plus queries appears later in this section.
Enform Plus terminates when an end-of-file, EXIT statement, or ?EXIT command is
encountered on the input file.
The Current Output Listing File
The current output listing file is the file to which Enform Plus directs output. During the
course of an Enform Plus session, the current output listing file can change.
At the beginning of an Enform Plus session, the current output listing file is the default
output file. Enform Plus determines the default output file by the following process:
•
If the OUT option is included in the ENFORM command, the default output file is the
file specified in the OUT option.
•
If the OUT option is omitted from the ENFORM command, the default output file is
the file specified in the IN option of the ENFORM command if that file is a terminal.
•
If the file specified for the IN option is not a terminal, the default output file is the
home terminal.
•
If both the IN option and the OUT option are omitted from the ENFORM command,
the default output file is the home terminal.
As the session progresses, the current output listing file might change as follows:
•
If a QUERY-COMPILER-LISTING file is specified, that file becomes the current
output listing file whenever Enform Plus commands and statements are being
processed.
•
If either a QUERY-REPORT-LISTING file or an ?OUT command file is specified,
that file becomes the current output listing file whenever a report (the output from a
LIST statement) is being processed.