Skip to main content

AcuCobol compilation error: Badly Formed Condition

  • December 23, 2015
  • 0 replies
  • 0 views

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.