AcuCobol compilation error: Badly Formed Condition

0 Likes

Problem

When compiling source code the following statement may give a compilation failure: 'Badly formed condition'.

IF (SAVE-INVOICE-NUM NOT = (SPACES AND "000000" AND ZEROS))

Resolution

To resolve this issue compile with --newARC.

The syntax rules for Abbreviated Combined Relation conditions become relaxed to allow for parenthesis to appear immediately after the relation.

For example: IF A = (B OR C OR D) would now be accepted by the compiler.

Comment List
Anonymous
Related Discussions
Recommended