Microsoft KB Archive/34083

PROCEDURE DIVISION Report Writer Commands in Version 3.0

PSS ID Number: Q34083 Article last modified on 04-21-1993

3.00 | 3.00 MS-DOS | OS/2

Summary: The following statements enable Report Writing capabilities in the PROCEDURE DIVISION: 1. OPEN – OPENs a report file (must be Sequential organization). The OPEN statement for a report file must contain only the OUTPUT phrase or the EXTEND phrase. 2. INITIATE – Causes the report-writer control system (RWCS) to begin processing a specified report or list of reports. 3. GENERATE – Directs the RWCS to produce a report in accordance with the report description specified in the REPORT SECTION of the DATA DIVISION. 4. TERMINATE – Causes the RWCS to complete the processing of the specified reports. 5. SUPPRESS – Causes the RWCS to inhibit the presentation of a report group. The SUPPRESS statement may only appear in a USE BEFORE REPORTING procedure. 6. USE BEFORE REPORTING – Specifies PROCEDURE DIVISION statements that are executed just before a report group named in the REPORT SECTION of the DATA DIVISION is presented. 7. CLOSE - CLOSEs a report file. Additional REPORT SECTION information can be found on Pages 14-1 through 14-85 in the “Microsoft COBOL Compiler Version 3.0: Language Reference Manual.”

Additional reference words: 3.00 Copyright Microsoft Corporation 1993.