IF WS-P2-WRITTEN-PREM = ZEROES AND
WS-P2-EARNED-PREM = ZEROES AND
WS-P2-PAID-LOSSES = ZEROES AND
WS-P2-OS-LOSSES = ZEROES
MOVE 'Y' TO WS-ALL-ZEROES-SW
if the value is less than 0.5 it is getting rounded to 0.. but the if condition is failing. I do not understand what is the problem. The WS-P2-WRITTEN-PREM has a picture class of -zzzzzzzzz9
WS-HOLD12-WRITTEN-PREM has a pic class of s9(11).99
Please help me in resolving the issue.
but the if condition is failing. I do not understand what is the problem.
Got zero answers? maybe you should think about the way you asked your question...
WS-P2-WRITTEN-PREM has the format USAGE DISPLAY.
After your compute, the field will have '__________0' (_ stands for space)
It is not a numeric compare: the string '__________0' is not equal to ZERO ('00000000000')
That's why "it fails".
18.104.22.168 General relation conditions