Skip to content

Appendix B: List of New Reserved Words

The following list shows the new reserved words used in the COBOL-IT Report Writer syntax. Except for SUPPRESS PRINTING which is in the 1974 and 1985 ANS standards, these words are new to all three standards. However, with the exception of DATA-SUB-1/2/3/4, LINE-LIMIT, REPORT-NUMBER, and REPEATED-COUNTER they are locally reserved only when the OSVS option is in effect. This means in general that the user may use these names as data-names, file names, etc. provided that, if they are used in the REPORT SECTION, it is only with care to avoid ambiguity. For example, SOURCE IS COLS and SOURCE IS STEP are permitted, but the multiple form SOURCES ARE STEP, COLS would not be correctly parsed. SOURCE IS BUFFER, DUPLICATED would be permitted as these keywords normally appear only in the SELECT clause.

Keyword References
Absent PRESENT/ABSENT WHEN Clause
BATCH MODE Clause
BODY FIRST/LAST DETAIL, NEXT GROUP Clause)
BUFFER PAGE BUFFER Clause
CENTER, CENTRE COLUMN Clause
CODE-VALUE CODE Clause
COL COLUMN Clause
COLS COLUMN Clause
COLUMNS COLUMN Clause
DATA-SUB-1/2/3/4 OCCURS Clause
DEFAULT PRESENT / ABSENT WHEN Clause
DEPTH OCCURS Clause
DUPLICATED DUPLICATED Clause
FUNC FUNCTION Clause
FUNCTION FUNCTION Clause
HOLD SET Statement
LINE-LIMIT LINE LIMIT Clause
NEW PRESENT AFTER Clause
NONE SOURCE Clause
NUMBERS COLUMN Clause, LINE Clause)
PRESENT PRESENT AFTER Clause, PRESENT WHEN Clause
PRINTING SUPPRESS PRINTING Statement
REPEATED REPEATED Clause
REPEATED-COUNTER REPEATED Clause
REPLACE OVERFLOW Clause
REPORT-NUMBER DUPLICATED Clause
SOURCES SOURCE Clause
STEP OCCURS Clause)
SUPPRESS SUPPRESS PRINTING Statement
UNLESS PRESENT WHEN Clause
WIDTH OCCURS Clause and REPEATED Clause
WRAP WRAP Clause

Words beginning with the prefix R - - (note the double hyphen) must also be avoided because the precompiler uses this prefix for its own generated data and procedure names.

Back to top