Compare multiple fields
Posted: Wed Oct 01, 2014 8:30 pm
As shown in the below code, my requirement is that I want to check whether EMPMARK occurring from 1 to 1000 has same values or not. If all the fields has same value,
I will set a flag, else i will not. Can anyone let me know the best approach/logic to find out whether all the fields has same value?
Some complex suggestions where IF EMPMARK(1) = EMPMARK(2) = EMPMARK(3) .......... = EMPMARK(1000)
I will set a flag, else i will not. Can anyone let me know the best approach/logic to find out whether all the fields has same value?
Some complex suggestions where IF EMPMARK(1) = EMPMARK(2) = EMPMARK(3) .......... = EMPMARK(1000)
01 EMP-TABLE VALUE SPACES.
10 EMP-TBL-MARKS OCCURS 1000 TIMES.
15 EMPMARK PIC X(04).
10 EMP-TBL-MARKS OCCURS 1000 TIMES.
15 EMPMARK PIC X(04).