Request-Qualification; Summary Records - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

Statements
FIND Statement

Request-Qualification

Summary Records

4–20
The value of either a user aggregate or a predefined aggregate.
FIND ...
( BY employee.job,
employee.salary,
rate := AVG (salary OVER job),
... ) ;
A group name. ENFORM allows you to specify a group name as an input
element. Avoid this specification, however, unless the data type of the fields
receiving the data is exactly the same as the data type of the input group.
Although ENFORM allows you to specify an output field name as an input element,
this specification is not recommended and might lead to unexpected results.
The following rules apply to input elements:
1.
An input element can be qualified or subscripted.
2.
An input element cannot contain a subscript range.
3.
An input element must be sufficiently qualified to avoid any ambiguity between it
and any other element specified in the query.
Use the WHERE clause to limit the records written to the physical output file or
transmitted to the host language program. The WHERE clause is described in
Section 5.
A FIND statement can be specified that either creates a new file containing only
summary records or transmits only summary records to a host language program.
Such summary records contain only the first target-record from each group (created by
a BY or BY DESC clause) down to some level. Summary records can only be generated
by a query that contains an aggregate.
The two methods of obtaining summary records are:
Explicitly request summary records by setting the @SUMMARY-ONLY option
variable to ON before issuing the FIND statement.
Implicitly request summary records by specifying only by-items and aggregates
over by-items in the query.
058057 Tandem Computers Incorporated

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents