Microsoft KB Archive/31184

Mathematics on Left Side of in IF Is Unpredictable

PSS ID Number: Q31184 Article last modified on 04-21-1993

2.20 MS-DOS

Summary: Performing arithmetic calculations on the left side of a relational operator (such as ) in an IF statement causes unpredictable run-time results. To work around this problem, perform the calculation in a separate statement(s) before the IF statement. This problem was fixed in COBOL 3.0.

Additional reference words: 2.20 Copyright Microsoft Corporation 1993.