cobol2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CHECKDIV Details (↑ Choosing Run-time Behavior)
 Key Summary                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     With CHECKDIV or CHECKDIV "ANSI" specified, the program will continue
     with an undefined result if it tries to divide by zero. With
     NOCHECKDIV set, the behavior is undefined. Setting NOCHECKDIV results
     in optimal code for divides.
 
     Specifying CHECKDIV "OSVS", CHECKDIV "VSC2", or CHECKDIV "COBOL370"
     has the same effect; trying to divide by zero will produce run-time
     error 48 (Attempt to divide by zero (fatal)). This error can be
     disabled using the -O RTS switch.
 
     This directive has no effect on arithmetic statements that use the
     ON SIZE ERROR phrase.
 
     See also O RTS switch
                                    -♦-