Introduction to ENFORM

Types of ENFORM Queries
Using ENFORM—The Basics
2–2 058051 Tandem Computers Incorporated
Types of ENFORM
Queries
There are three types of ENFORM queries:
1. temporary
2. stored
3. compiled
Temporary Queries A temporary query is illustrated in Figure 2-2. In this type of query, the ENFORM
specifications are entered conversationally and saved. The LIST statement is executed
immediately after it is entered. Temporary queries are useful for spontaneous access
to the database when the query is relatively simple; i.e., a limited amount of
information is required from one or two files only.
Figure 2-2. Temporary Queries
:ENFORM
> OPEN
> LIST ;
> ? EXIT
ENFORM
Reports
Stored Queries A stored query is illustrated in Figure 2-3. In this type of query, ENFORM
specifications are entered in an edit file and saved. The edit file can be used as a
source file for ENFORM and run whenever you need it. Stored queries are useful for
developing ENFORM queries that will be used repeatedly by different people in your
installation.
Figure 2-3. Stored Queries
:ENFORM
> ? EDIT Query
> ? EXIT
1 OPEN
2 LIST ;
*e
:ENFORM
> ? RUN Query
Edit File
Report