ASCD and DESC Clauses
Clauses
5–6
058057 Tandem Computers Incorporated
ASCD and DESC
Clauses
The ASCD and DESC clauses sort target-records, in ascending or descending order
respectively, according to the value of the specified field. The syntax of the ASCD and
DESC clauses is:
{
}
ASCD
DESC
target-item
target-item
is the name of a field from an input record which serves as a sort key for the target
records.
The ASCD and DESC clauses do not group field values. If you want field values both
grouped and sorted, use the BY or BY DESC clauses described in this section.
When more than one ASCD, BY, BY DESC, or DESC clause is specified in a LIST or
FIND statement, ENFORM uses a major to minor sorting precedence. ENFORM
determines the sorting precedence by the order in which the ASCD or DESC clauses
appear in the LIST or FIND statement. The first sort clause has the highest priority,
the next one second priority, down to the last specified clause.
The following ASCD clause indicates that the target records are to be sorted on the
value of partnum:
ASCD partnum,
Summary of Contents for ENFORM 058057
Page 6: ...New and Changed Information 058057 Tandem Computers Incorporated v...
Page 18: ...Preface xvi 058057 Tandem Computers Incorporated This page left intentionally blank...
Page 19: ...Preface 058057 Tandem Computers Incorporated xvii...
Page 269: ...Glossary Glossary 4 058057 Tandem Computers Incorporated This page left intentionally blank...