ENFORM User's Guide

Establishing the Query Environment
Developing an ENFORM Query
3–6 058058 Tandem Computers Incorporated
Defining User Elements Use the DECLARE statement to define any user elements to be used in the query. The
DECLARE statement defines user variables, user tables, and user aggregates. The
DECLARE statement also optionally establishes the internal format, the default
display format, and the default heading of user variables or tables.
When the DECLARE statement is issued, the query compiler stores the information
specified in the internal table. This information remains in the internal table until a
CLOSE statement for the user element is issued, a ?DICTIONARY command or
DICTIONARY statement is issued, or the ENFORM session terminates.
Issue another DECLARE statement specifying the same user variable or table name to
change the internal format, the default display format, or the default heading. If you
issue another DECLARE statement that specifies the name of a previously defined
user aggregate, ENFORM issues an error message.
Use the SET statement to provide an initial value for a user variable or user table.
Setting Option Variables The option variables store values that ENFORM uses when performing certain
operations. Each option variable has a default value that you can reset by using the
SET statement. When the value of an option variable is reset, the new value remains in
effect for the duration of the current ENFORM session. By using the SET statement to
reset the default value of an option variable, you can:
Establish a new report format.
Affect the processing strategy that ENFORM uses during the current session.
Control the size of the target file that ENFORM produces when processing a LIST
or FIND statement.
Generate statistics that you can use to improve processing efficiency.
Control the amount and kind of information that ENFORM displays at your
terminal.