Before Change Clause; Specifying A Field Name Within A Before Change Clause - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

BEFORE CHANGE
Clause
Specifying a Field Name
within a BEFORE CHANGE
Clause
The BEFORE CHANGE clause allows you to specify information to be printed
following the records for each group for the current report. The BEFORE CHANGE
clause is an optional part of the LIST statement. The syntax of the BEFORE CHANGE
clause is:
BEFORE CHANGE [ ON ] by-item PRINT print-list [ CENTER ]
by-item
is the name of a field grouped by a BY or BY DESC clause.
print-list
is any combination of literals, FORM, SKIP, SPACE or TAB clauses. A print-list
can also contain the following elements that can be modified by AS, AS DATE, or
AS TIME clauses: field names, arithmetic expressions, IF/THEN/ELSE
expressions, System Variable clauses, JULIAN-DATE clauses, TIMESTAMP-DATE
clauses, TIMESTAMP-TIME clauses, user variables, or parameter names.
The clauses that can be used in a print-list are described in this section. The other
elements are described in Section 3.
The keyword BEFORE in the BEFORE CHANGE clause refers to the values printed,
not to the location of the printed information. For the exact location of where the
BEFORE CHANGE information is printed within a report, refer to the ENFORM User's
Guide.
When more than one BEFORE CHANGE clause is specified, ENFORM prints the
BEFORE CHANGE information in the order in which the BEFORE CHANGE clauses
are entered.
If you specify a field name within a print-list of a BEFORE CHANGE clause, ENFORM
prints the same field value in the last row of the previous group; that is, before the
value changes. A field name appearing within the print-list of a BEFORE CHANGE
clause need not be explicitly included within the LIST statement. If the field name is
not included, ENFORM in effect adds it with a NOPRINT clause.
058057 Tandem Computers Incorporated
Clauses

BEFORE CHANGE Clause

5–31

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents