Introduction to ENFORM
Report Writing
How ENFORM Works
058051 Tandem Computers Incorporated 3–7
Note that in this example, the target file is an intermediate file used by ENFORM to
process the query; it is not a named physical file that you can access. However, if you
use an ENFORM FIND statement in the query, the result of the query can be a physical
output file that is structured like the target file.
To use the FIND statement, first create a DDL record description that looks like the
target file and add it to the dictionary; then use FIND instead of LIST in the query
specifications. The output file,produced by the FIND statement, can be processed by a
host language program using ENFORM procedures.
See the ENFORM Reference Manual for more details on using the FIND statement.
Report Writing The second phase of the compiler/report writer process occurs when it receives
control back from the query processor. As illustrated in Figure 3-3, the
compiler/report writer:
Adds titles, subtitles, and headings to the report.
Extracts data from the target file and adds it to the report.
Does any other report formatting specified in the query.
Writes the report to the output device specified in the query.