Customize CA Datacom MetaCOBOL macros

book

Article ID: 77116

calendar_today

Updated On:

Products

CA Datacom CA DATACOM - AD CA CIS CA Common Services for z/OS CA 90s Services CA Database Management Solutions for DB2 for z/OS CA Common Product Services Component CA Common Services CA Datacom/AD CA ecoMeter Server Component FOC CA Easytrieve Report Generator for Common Services CA Infocai Maintenance CA IPC Unicenter CA-JCLCheck Common Component CA Mainframe VM Product Manager CA Chorus Software Manager CA On Demand Portal CA Service Desk Manager - Unified Self Service CA PAM Client for Linux for zSeries CA Mainframe Connector for Linux on System z CA Graphical Management Interface CA Web Administrator for Top Secret CA CA- Xpertware

Issue/Introduction



Are user customizations to CA Datacom support for MetaCOBOL macros permissible?
 

Environment

z/OS

Resolution

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 &[email protected]
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 &[email protected] 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 &[email protected]

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 &[email protected] in the macro code
  • Increase the number of occurrences to an appropriately larger value
  • Retranslate the program