Steve, a couple suggestions: a) It shouldn't make a lick of difference, but enclose the math in parans, just to insure the precedence you desire in the operation..
IF (INTREC+PRNREC) # (INTPAY+PRNPAY) THEN b) if that doesn't change things, try something like: WHATSUP = ABS((INTREC+PRNREC) - (INTPAY+PRNPAY)) IF WHATSUP > 0 THEN ERRMSG='ACCT/CALCULATOR MISMATCH' HTH, -Baker HI All, I don't understand why the IF statement THEN clause is executed in the following code: CUSTOMCALC: 447: IF INTREC+PRNREC#INTPAY+PRNPAY THEN :: S CUSTOMCALC: 448: ERRMSG='ACCT/CALCULATOR MISMATCH: ':(INTREC+PRNREC)'R2':'/':(INTPAY+PRNPAY)'R2' :: INTREC/ NUMBER: 24016.35 :: PRNREC/ NUMBER: 978.56 :: INTPAY/ NUMBER: 24016.35 :: PRNPAY/ NUMBER: 978.56 :: ERRMSG/ STRING: T r L=42 `ACCT/CALCULATOR MISMATCH: 24994.91/24994.91' ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/