Customize CA Datacom MetaCOBOL macros

Document ID : KB000077116
Last Modified Date : 26/04/2018
Show Technical Document Details
Question:
Are user customizations to CA Datacom support for MetaCOBOL macros permissible?
 
Environment:
z/OS
Answer:
Yes. The user can customize a copy of the product provided macros as they have done in the past.

In this specific example, the user had customized the GPV macro under CA MetaCOBOL+ Version 1.1 to handle a user program which referenced more that 40 DATAVIEW statements. After upgrade to CA Datacom support for MetaCOBOL Version 15.1, the translation failed with errors: 

N99  GPV16E-MORE THAN 200 "REDEFINES,"
N99         INCREASE OCCURS FOR &V@REDEFINES.
N05  INVALID INDEX FOR VARIABLE TABLE

The user was able to customize a copy of  the 15.1 GPV macro as was done with 1.1. That is, the &V@REDEFINES variable in the GPV macro source was increased from value 200 to 500. 
Additional Information:

The errors are documented in CA Datacom® support for MetaCOBOL - 15.1 
Section "GPV Diagonstics":

GPV16E MORE THAN 200 "REDEFINES," INCREASE OCCURS FOR &V@REDEFINES

Reason:

The program contains more than 200 REDEFINES clauses, exceeding the size of a macro table.

Action:

Perform the following actions:

  • Locate the macro variable &V@REDEFINES in the macro code
  • Increase the number of occurrences to an appropriately larger value
  • Retranslate the program