5.4.4
USE BEFORE
REPORTING
5-30
The USE statement specifies Procedure Division statements to be executed
just before a report group is produced.
USE BEFORE REPORTING identifier-l [, identifier-2] ...
A USE statement is specified immediately after a section header in the
Declarative portion of the Procedure Division; it must be followed by a space.
The remainder of the section must consist of one or more procedural para-
graphs that define the procedures to
be
used.
Each identifier represents a report group named in the Report Section of the
Data Division. An identifier must not appear in more than one USE statement.
No Report Writer statement (GENERATE, INITIATE, or TERMINATE) may
be
written in a procedural paragraph following the USE sentence in the declara-
tive portion.
The USE statement itself is never executed, rather it defines the conditions
calling for the execution of the USE procedures. The deSignated procedures
are executed by the Report Writer just before the named report is produced,
regardless of page or control break associations with report groups.
If
USE
procedures are specified for a CONTROL FOOTING report group, they affect
the previous value of items specified in the CONTROL clause or the current
value of items specified in a SOURCE clause.
A USE procedure must not contain any reference to non-declarative procedures.
Conversely, the non-declarative portion must not contain reference to proce-
dure-names that appear in the declarative portion, except that PERFORM
statements may refer to a USE declarative or to the procedures associated
with the USE declarative.
6&229400
Need help?
Do you have a question about the 3300 and is the answer not in the manual?