You can use CCCA to convert the reserved words automatically. For more information about the CCCA tool, see Conversion tools for source programs.
CCCA is updated for reserved word conversions for Enterprise COBOL Version 4 by the PTF for APAR PK57361.
Table 35 shows the reserved words added to each subsequent release of COBOL. For a complete list of reserved words, see COBOL reserved word comparison.
| Compiler | Reserved word |
|---|---|
| COBOL/370 V1R1 | FUNCTION, PROCEDURE-POINTER |
| COBOL for MVS & VM V1R2 | CLASS-ID, METACLASS, RECURSIVE, END-INVOKE, METHOD, REPOSITORY, INHERITS, METHOD-ID, RETURNING, INVOKE, OBJECT, SELF, SUPER, LOCAL-STORAGE, OVERRIDE |
| COBOL for OS/390 & VM V2R1 | Same as COBOL for MVS & VM |
| COBOL for OS/390 & VM V2R2 | COMP-5, COMPUTATIONAL-5, EXEC, END-EXEC, SQL, TYPE, FACTORY |
| COBOL for OS/390 & VM V2R2 with PQ49375 | EXECUTE |
| Enterprise COBOL V3R1 | JNIENVPTR, NATIONAL, XML, END-XML, XML-EVENT, XML-CODE, XML-TEXT, XML-NTEXT, FUNCTION-POINTER |
| Enterprise COBOL V3R4 | NATIONAL-EDITED, GROUP-USAGE |
| Enterprise COBOL V4R1 | AS, ATTRIBUTES, ELEMENTS, ENCODING, NAMESPACE, NAMESPACE-PREFIX, XML-DECLARATION, XML-NAMESPACE, XML-NAMESPACE-PREFIX, XML-NNAMESPACE, XML-NNAMESPACE-PREFIX |