ACUCOBOL-GT provides the ability to suppress certain sets of reserved words. When suppressed, these words are treated as user-defined words instead. This ability is provided to aid in converting programs written for other COBOL environments. Reserved words that have been added to the 1974 standard are divided into the groups identified below. By specifying the corresponding option, you cause that group of words to be treated as user-defined words.
Reserved Word List in the ACUCOBOL-GT Appendices, includes a list of reserved words and shows which group each word belongs to. Some words belong to more than one group. Every group a word belongs to must be suppressed for the word to be treated as a user-defined word.
-R2 | Suppresses words reserved by the 2002 COBOL standard. |
-R8 | Suppresses words reserved by the 1985 COBOL standard. |
-Ra | Suppresses words reserved by ACUCOBOL-GT that are required for its unique extensions. |
-Rc |
Allows you to change a reserved word. This option must be followed by two separate arguments: The first is the reserved word
you want to change. The second is the word that you want to use instead. For example,
-Rc TITLE NAMEwill allow you to use "TITLE" as a user-defined word and will cause the word NAME to be treated as the reserved word TITLE. You may not specify a word that is already reserved as the new reserved word. This option may be repeated to transform multiple reserved words. |
-Ri | Suppresses words reserved by ICOBOL that are not in the 1985 standard. |
-Rn |
Allows you to make a reserved word a synonym for another reserved word. This option must be followed by two separate arguments:
The first is the reserved word for which you want a synonym. The second is the word that functions as the synonym. For example,
-Rn COMP COMP-5causes COMP-5 to be treated the same as the reserved word COMP. This option may be repeated to make multiple synonyms. |
-Rr | Suppresses words reserved by RM/COBOL that are not in the 1985 standard. |
-Rs | Suppresses words added to ACUCOBOL-GT in order to support the Screen Section. |
-Rv | Suppresses words reserved by VAX COBOL that are not in the 1985 standard. |
-Rw |
This option allows you to suppress a particular reserved word. The option must be followed (as the next separate argument) by the reserved word you want to suppress. This option may be repeated to suppress multiple reserved words. This option also allows you to suppress some non-reserved words, such as control names (for example,
entry-field and
label) or property names (for example,
max-text and
bitmap-number). If you tell the compiler to suppress a non-reserved word, it issues the following warning:
Unknown reserved word: non-reserved word |
-Rx | This option tells the compiler to ignore a particular word. The option must be followed (as the next separate argument) by the word you want the compiler to ignore. This option may be repeated to ignore multiple words. |