REPORT SECTION and SCREEN SECTION
IBM® COBOL for Linux® on x86 does
not support REPORT SECTION or SCREEN SECTION.
When you use IBM
COBOL for Linux on x86 to compile source code that
contains
REPORT SECTION or SCREEN SECTION, you will receive the error messages in the following
example:$ cat tcReportScreenSection.cbl
000010 IDENTIFICATION DIVISION.
000020 PROGRAM-ID. TEST-CASE.
000030 ENVIRONMENT DIVISION.
000040 DATA DIVISION.
000050
000060 REPORT SECTION.
000070 01 TYPE IS PAGE HEADING.
000080 01 TYPE IS PAGE FOOTING.
000090
000100 SCREEN SECTION.
$ cob2 -o tcReportScreenSection tcReportScreenSection.cbl IBM COBOL for Linux 1.2.0 compile started
0LineID Message code Message text
6 IGYDS0148-S "REPORT" is a reserved word related to language not supported by this
compiler. The statement was discarded.
10 IGYDS0009-E "SCREEN" should not begin in area "A". It was processed as if found
in area "B".
-Messages Total Informational Warning Error Severe Terminating
0Printed: 2 1 1
End of compilation 1, program TEST-CASE, highest severity: Severe.
Return code 12
For details about REPORT SECTION and SCREEN
SECTION, see Standard COBOL 2002,
section 13.7, Report section, and section 13.8, Screen section.