User guide

4 Compiling and
Executing a Query
058058 Tandem Computers Incorporated 4–1
Before returning the information you want, ENFORM must compile and execute your
query. ENFORM compiles and executes a query during a session (the period of time
that begins when you enter the ENFORM command and ends when ENFORM
terminates).
During a session, you can use ENFORM either in noninteractive mode or in interactive
mode. The following paragraphs describe the use of ENFORM in both noninteractive
and interactive mode.
Using ENFORM in
Noninteractive Mode
You can use ENFORM in noninteractive mode by specifying the ENFORM command
with the IN option. For example:
:ENFORM/IN test1,OUT $s/
When you enter the ENFORM command in this form, ENFORM compiles (if
necessary) and executes your program immediately. For the input file, you can specify
either an Edit file containing ENFORM source code or a compiled query file (created
previously by the ?COMPILE command). The input file must contain all the
statements, clauses, and commands needed for the query.