Hi all,
I want to reduce the CPU usuage by my cobol program. The program mainly utilises the CPU time to EVALUATE using a WHEN statment which repeats for 140times thus causing the program to run for a longer time.
Please tell me how i can replace the WHEN statment and put a more effective wayb of doing it.
eg:
WHEN 127
ADD +1 TO WS-127-CT
WHEN 128
ADD +1 TO WS-128-CT
WHEN 129
ADD +1 TO WS-129-CT
WHEN 130
ADD +1 TO WS-130-CT
It goes on checking from 0-140.