v71AddBehavior

The v71AddBehavior build descriptor option states whether, in a specific case, the effect of the plus (+) sign is determined by the type of variable to which an expression is assigned. The option is available for all target languages but is intended solely for maintaining COBOL code that was written after EGL version 6.0 and through EGL version 7.1.
The option applies to statements of the following form:
myVariable = mySubExpression01 + mySubExpression02;

Values

NO (the default value)
The following rule applies:
  • If the first expression on the right-hand side of the previous example is of a character type, the plus sign is a concatenation operator.
  • If the first expression on the right-hand side of the previous example is of a numeric type, the plus sign is an arithmetic operator.

This value has always been in effect for Java and JavaScript generation.

YES
The YES value changes the default behavior only in the following case:
  • The variable on the left-hand side of the previous example is of a numeric type.
  • The first expression on the right-hand side is of a character type.
  • The second expression on the right-hand side is of a numeric type.

In that case, the plus sign is an arithmetic operator, as was true for COBOL generation after EGL version 6.0 and through EGL version 7.1.


Feedback