User guide

Using ENFORM in Interactive Mode
Compiling and Executing a Query
4–4 058058 Tandem Computers Incorporated
Entering Source
Code Directly
Enter source code directly by typing ENFORM statements, clauses, and commands in
response to the ENFORM prompt. End each statement with a semicolon so that
ENFORM displays any error occurring during statement execution immediately.
ENFORM compiles and executes your program as soon as it encounters the
terminating semicolon of a LIST or FIND statement. For example, consider Figure 4-2.
Figure 4-2. Entering Statements Directly in Interactive Mode
:ENFORM
ENFORM - T9102C08 - (02APR82) DATE - TIME: 5/26/82 - 13:43:11
>OPEN parts;
>LIST parts;
Part
Number PARTNAME INVENTORY LOCATION PRICE
------ ------------------ --------- -------- ---------
212 SYSTEM 192KB CORE 7 J87 92000.00
244 SYSTEM 192KB SEMI 3 B78 87000.00
If an error occurs during statement execution, use the FC command (a feature of all
Tandem subsystems) to correct the last line entered or to reissue the previous
command or statement. The FC command has three subcommands of its own:
i insert one or more characters.
r replace one or more characters.
d delete one or more characters.
Cancel the FC command by typing two right slashes (//) in columns 1 and 2, by
pressing the CTRL and Y terminal keys simultaneously, or by pressing the terminal
BREAK key. Cancelling the FC command cancels the previous statement or command
and returns you to the ENFORM prompt.
Refer to the GUARDIAN Operating System Utilities Reference Manual for more
information about the FC command.
When entering source code directly, terminate the ENFORM session by issuing the
EXIT statement or ?EXIT command, or by pressing the CTRL and Y terminal keys
simultaneously.