Friday, September 4, 2009

The INITIATE Statement

The INITIATE Statement
Syntax
Format
INITIATE report-name-1
Description
The INITIATE statement is used to prepare a report for processing. It sets all of the reports sum counters as well as its line and page counters to zero. The INITIATE 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 must be OPEN prior to the execution of the INITIATE 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.