Converting programs that use new reserved words
Some reserved words have been added since Enterprise COBOL Version 3.
-85
to all instances of the word. For example:77 VOLATILE PIC S9(9) BINARY.
Move 0 TO VOLATILE.
To compile with Enterprise COBOL V5 or V6, change
it to: 77 VOLATILE-85 PIC S9(9) BINARY.
Move 0 TO VOLATILE-85.
- ALLOCATE
- DEFAULT
- END-JSON
- FREE
- JSON
- JSON-CODE
- JSON-STATUS
- VOLATILE
- XML-INFORMATION
- XML-NAMESPACE
- XML-NAMESPACE-PREFIX
- XML-NNAMESPACE
- XML-NNAMESPACE-PREFIX
- XML-SCHEMA
The conversion tool CCCA automatically converts these reserved words for you if you have the PTF for APAR PM86253 installed for Enterprise COBOL Version 5.1, or if you have the PTF for APAR PI32750 installed for Enterprise COBOL Version 5.2, or if you have the PTF for APAR PI55980 installed for Enterprise COBOL Version 6.1. CCCA is included with the IBM® Debug Tool product.
CCCA is bundled with IBM Debug for z/OS® (IDz) 14.2 or earlier versions, and it is removed since IDz 15.0. After IDz 14.2 reached EOS on September 30, 2022, you can download CCCA from here at no charge.
For details about CCCA, see COBOL and CICS Command Level Conversion Aid for z/OS (CCCA).
For a table comparing reserved words for all of the different COBOL compilers, see Table 1.