search cancel

Customize CA Datacom MetaCOBOL macros

book

Article ID: 77116

calendar_today

Updated On:

Products

Datacom DATACOM - AD CIS COMMON SERVICES FOR Z/OS 90S SERVICES DATABASE MANAGEMENT SOLUTIONS FOR DB2 FOR Z/OS COMMON PRODUCT SERVICES COMPONENT Common Services CA ECOMETER SERVER COMPONENT FOC Easytrieve Report Generator for Common Services INFOCAI MAINTENANCE IPC UNICENTER JCLCHECK COMMON COMPONENT Mainframe VM Product Manager CHORUS SOFTWARE MANAGER CA ON DEMAND PORTAL CA Service Desk Manager - Unified Self Service PAM CLIENT FOR LINUX ON MAINFRAME MAINFRAME CONNECTOR FOR LINUX ON MAINFRAME GRAPHICAL MANAGEMENT INTERFACE WEB ADMINISTRATOR FOR TOP SECRET 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