Group Definition And Sorting; Output Fields - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

The BY and BY DESC clauses group and sort records. The appearance of a BY or BY
Group Definition and
Sorting
DESC clause in a FIND statement causes every occurrence of a grouped by-item value
to be written to the output record (unlike the LIST statement where only the first
occurrence of a grouped value is written to the output record). The BY and BY DESC
clauses are described in Section 5.
The ASCD and DESC clauses sort records in ascending or descending order. They do
not identify a group. The ASCD and DESC clauses are also described in Section 5.
When a FIND statement contains more than one BY, BY DESC, ASCD, or DESC clause,
ENFORM determines a major to minor sort precedence by the order in which the BY,
BY DESC, ASCD, or DESC clauses appear in the FIND statement. The first clause has
highest priority and is sorted first, the next one second priority, down to the last
clause.
When the FIND statement executes, ENFORM takes the values from the input

Output Fields

elements and stores them in the output field. Values are stored in the output field by
name (when the output field has the same name as an input field) or by assignment
syntax (:=). ENFORM allows you to qualify output-field-name.
ENFORM allows you to use subscripted output field names in a FIND statement when
the record description of the output record contains a data base table; however, a
subscript range is not valid anywhere in a FIND statement. (Refer to the discussion of
subscripts in Section 3 for the syntax used to include subscripts.) For example, the
following FIND statement is valid:
The following rules apply to output-field-name:
1.
2.
058057 Tandem Computers Incorporated
FIND newemp (name
child [ 1 ]
child [ 2 ]
child [ 3 ]
child [ 4 ]
Output-field-name can be qualified or subscripted.
Output-field-name cannot contain a subscript range.
:= emp.name,
:= emp.child1,
:= emp.child2,
:= " ",
:= " "
);
Statements
FIND Statement
4–17

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents