5.3.3
CONTROL
60229400
The CONTROL clause specifies the identifiers which provide control breaks
for this report. Whenever the value contained in these identifiers changes,
a control break occurs. The control hierarchy is defined by the order of
the control breaks. This clause is included in the report description (RD)
entry for an entire report.
CONTROL IS
~
CONTROLS ARE~
{
FiliAL
}
identifier-l
[, identifier-2] ...
FiliAL, identifier-l
(, identifier-2] ...
The CONTROL clause is required when control heading or control footing
report groups are specified.
The identifiers are listed in order from major to minor; FINAL is the highest
control, identifier-l is the major control, identifier-2 is the intermediate
control, etc. The last identifier specified is the minor control. The idenfi-
fiers must be defined in the File, Common-Storage or Working-storage
Section of the Data Division.
The identifiers specified in the CONTROL clause are the only identifiers
referred to by the RESET and TYPE clauses in a report group description
entry for this report. This clause is optional, but must be included when
the TYPE clause specifies control headings or footings or when RESET is
specified. Control headings and footings are printed automatically whenever
the value of an identifier specified in this clause changes. The final control
heading is printed before any other control headings when the first GENERATE
is executed, and final control footing is printed when the TERMINATE state-
ment is executed.
Example:
RD REPORT-A
CONTROLS ARE FINAL, DEPT-NO, SECT-NO
During the generation of REPORT-A, the control headings and footings
associated with SECT-NO are produced when the contents of the data item
called SECT-NO changes. The control headings and footings associated with
DEPT-NO are produced in addition to those associated with SECT-NO when
the contents of DEPT-NO changes. The final control heading, in addition to
all lower level control headings, is produced when the first GENERATE
statement is executed for this report, the final footing follows all other con-
trol footings when the TERMINATE statement is executed.
5-11
Need help?
Do you have a question about the 3300 and is the answer not in the manual?