cobol-programming-course icon indicating copy to clipboard operation
cobol-programming-course copied to clipboard

Optimization possible in CBL0106.cbl

Open fa573r opened this issue 1 year ago • 0 comments

Course Details

GitHub

Description

In CBL01016.cbl I've seen somthing that is not as it is recommended. The table / array 01 OVERLIMIT. is indexed with a separate variable: 05 SUB1 PIC 99.. Recommendation says,that an array should be addressed with e.g. 'indexed by SUB1.'. That normally improves performance (in this case irrelevant). Cause this is an educational site, students should be shown how to do it right and not how it was done in the beginning of COBOL.

Reproduction Steps

...

Additional Context

No response

fa573r avatar Aug 18 '23 13:08 fa573r