← All errors

RNQ

RNQ0102 Divide by zero

RPG status code
00102 Divide by zero

Most common cause

DIV, %DIV or '/' with a zero divisor.

Other causes

  • %REM with a zero second operand.

How to fix it

Check the divisor before the operation and handle the zero case explicitly.

Related errors

Text and codes from IBM documentation for 7.6. Checked on .