I tried to handle the scenario something like this way -
IF PR-ACT-SOURCE-DETAIL-1 OF TRANSACTION-RECORD-1(N:1)
IS NOT EQUAL TO
PR-ACT-SOURCE-DETAIL-2 OF TRANSACTION-RECORD-2(N:1)
MOVE 'Y' TO WS-DIFF-FOUND
DISPLAY 'DIFFERENCE FOUND AT POSITION' N
Problem with the above code is that perform loop occurs 5000 times and if I need to compare such 10,000 strings so the execution time becomes too high.
Is there any other way to do the same thing which will require lesser execution time?