User guide

Using ENFORM in Interactive Mode
Compiling and Executing a Query
058058 Tandem Computers Incorporated 4–5
Entering Source
Code Indirectly
Enter source code indirectly by first placing it on an Edit file. Place any query that is
longer than three or four lines or that is issued repeatedly on an Edit file.
Enter the Tandem Text Editor from the ENFORM subsystem by using the ?EDIT
command. For example:
:ENFORM
ENFORM - T9102C09 - (02APR82) DATE - TIME: 5/26/82 - 13:45:09
>?EDIT test1 TEXT EDITOR - T9601C08 - (01APR82)
CURRENT FILE IS $DATA.TEST.TEST1
*ADD 1
1 OPEN parts;
2 ...
Once you enter the Editor, all of its features are available.
Entering the ?EDIT command sets the default Edit file for subsequent ?RUN or ?EDIT
commands. When you set the default Edit file, you need not include an Edit file name
with a subsequent ?RUN or ?EDIT command when the same Edit file is to be used.
If you want to place more than one query on the same Edit file, you can identify a
particular collection of statements or commands by using the ?SECTION command in
the Edit file. For example:
:ENFORM
ENFORM - T9102C09 - (02AOR82) DATE - TIME: 5/26/82 - 13:49:16
>?EDIT test2
TEXT EDITOR - T9601C08 - (01APR82)
CURRENT FILE IS $DATA.TEST.TEST2
*ADD 1
1 ?SECTION testa
2 OPEN parts;
3 .
4 .
5 .
6 ?SECTION testb
7 OPEN employee;
8 .
9 .