neopragma/cobol-unit-test

Index variable incompatibilities with older compilers

Closed this issue · 3 comments

Index variable incompatibilities with older compilers

Changed indices to USAGE INDEX. Needs to be tested on a zOS system to confirm the fix.

Problems using USAGE INDEX items in computations. Need to handle this in a different way for zOS compatibility.

Fixed by computing the desired index value inside the parentheses where the index is referenced, e.g. FIELDNAME(INDEXNAME - 1).