Previous Topic Next topic Print topic


TERMINATE

End report processing. The TERMINATE statement also:
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.
  • Adds all SUM operands and saves their values
  • Saves current values of all CONTROL items
  • Produces all CONTROL FOOTING report groups beginning with the minor CONTROL FOOTING and ending with FINAL
  • Produces PAGE FOOTING and PAGE HEADING report groups if a page break occurred
  • Produces REPORT FOOTING report group
  • Resets all CONTROL items to their values when TERMINATE was executed

Syntax:

TERMINATE reportname1 [,reportname2] ...

Parameters:

reportname Identify the report. Define reportname in a RED statement in the Report Section of the Data Division.

Comments:

  • If GENERATE processing was not executed for a report between its INITIATE and TERMINATE, TERMINATE does not produce any report groups or perform any related processing. If INITIATE processing does not execute, TERMINATE does not execute.
  • TERMINATE does not close the report file; to do so, code a COBOL CLOSE statement. TERMINATE every report in which you coded INITIATE before you code a CLOSE.
Previous Topic Next topic Print topic