Compile Command - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

Commands

?COMPILE Command

?COMPILE Command
6–6
The ?COMPILE command compiles a query and stores it in a physical file. The syntax
of the ?COMPILE command is:
?COMPILE edit-filename [ ( section-name , ... ) ]
TO compiled-physical-filename
edit-filename
is the name of the EDIT file containing the ENFORM query.
( section-name , ...)
is the name of the section(s) within an EDIT file. The list must be enclosed within
parentheses.
compiled-physical-filename
is the name of the physical file to contain the compiled query.
The ?COMPILE command compiles a query. The ENFORM internal table becomes
part of the compiled query file. If physical-filename existed before compilation, the old
version is purged and a new physical file is created. If errors are produced during a
compilation attempt, the original compiled query file is not affected at all.
The ?COMPILE command only compiles one LIST or FIND statement. If your EDIT
file contains more than one LIST or FIND statement, ENFORM compiles the first LIST
or FIND statement to the compiled query file. ENFORM does not compile any
statements or commands following the first LIST or FIND statement; instead ENFORM
continues processing, executing the statements and commands as they are
encountered in the EDIT file.
When the LIST or FIND statement of the query is written to the compiled query file,
most of the commands, options, and other statements that provide environmental
information are stored in the internal table. The internal table is then saved in the
compiled query file.
ENFORM assigns a file code of 888 to the compiled query file. ENFORM creates this
code to identify the physical file as a stored query produced by ENFORM.
A query called by a host language program must be compiled first. Other queries do
not need to be compiled before run time; however, there are some advantages to
creating a compiled query file. The compiled query file protects the query from being
inadvertently changed. Less processing time is required when the compiled query file
is saved and reused for runs.
058057 Tandem Computers Incorporated

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents