Coding control statements

To create or modify a reserved word table, you must understand the syntax of the control statements that affect them.

The following figure illustrates the format for coding reserved word control statements.
Figure 1. Syntax format for reserved word control statements

ABBR   reserved-word: user-word [comments]
      [reserved-word: user-word [comments]]
        ?
INFO   COBOL-word [(0 | 1)] [comments]
      [COBOL-word [(0 | 1)] [comments]]
        ?
RSTR   COBOL-word  [(0 | 1)] [comments]
      [COBOL-word [(0 | 1)] [comments]]
        ?
As shown in the preceding figure, the keywords you can use are:
ABBR
Specifies an alternative form of an existing reserved word
INFO
Specifies words that are to be flagged with an informational message whenever they are used in a program and the FLAGSTD compiler option is in effect
RSTR
Specifies words that are to be flagged with an error message whenever they are used in a program

All words that you identify with the control statement keywords INFO and RSTR are flagged with a message in the source listing of the Enterprise COBOL program that uses them. Words that are abbreviated are not flagged in the source listing unless you have also specified them on the INFO or RSTR control statements.