EZTC0186E >>> $ macro variable LENGTH not defined
search cancel

EZTC0186E >>> $ macro variable LENGTH not defined

book

Article ID: 15168

calendar_today

Updated On:

Products

PanAudit Plus Easytrieve Report Generator PAN/SQL

Issue/Introduction



Under release 11.6, having '&' references in the MACRO definition is resulting in the following EZTC0186E compiler error:

     EZTC0186E >>> $ macro variable LENGTH not defined

 

How can I resolve this?

    

Environment

Release: EDBMSU00200-11.6-Easytrieve-Report Generator-Option for DB2-MSU
Component:

Resolution

CA Easytrieve is not designed to have "&" references in the MACRO definition, only in the body of the macro.

The Programming Guide identifies the following:
Within the body of a macro, the ampersand (&) is the prefix concatenated to parameter substitution words. You must spell parameter substitution words exactly the same their counterparts on the macro prototype, except for the leading ampersand. 

The workaround is to hard code the "&" value where it is needed, instead of placing the "&" in the invocation of the macro.