HELPLIB.HLB  —  COBOL  Run-Time Messages, DIVBY_ZER
  Divide by zero; execution continues

  Explanation:  The program executed a DIVIDE operation with the
  value zero for the divisor, and the statement does not contain an
  ON SIZE ERROR clause.  Execution continues with undefined results.

  User Action:  You must take one of the following actions:

      a. Check the program logic.  If you expect that your program
         may attempt to divide by zero, add an ON SIZE ERROR clause
         to the DIVIDE statement.

      b. If this error occurs in the context of an expression that
         cannot include an ON SIZE ERROR clause, such as an IF
         statement, evaluate the expression in a DIVIDE or COMPUTE
         statement with an ON SIZE ERROR clause, storing the result
         in a temporary variable.  Use that variable in the expression
         context.
Close Help