Friday, September 4, 2009

The TERMINATE Statement

The TERMINATE Statement
Syntax
Format
TERMINATE report-name-1
Description
The TERMINATE statement is used to end processing for a report. It prints any final control footings, page footings and report footings. The TERMINATE statement is part of the COBOL Report Writer Feature.
Tips
1. Report-name-1 must be the name of a report in the REPORT SECTION of the DATA DIVISION.
2. The file associated with the report should still be closed following the execution of the TERMINATE statement.
3. Unfortunately, many implementors have elected not to implement COBOL's Report Writer feature. Refer to your individual manual to verify whether this will work in your particular implementation of COBOL.