Page 1 of 1

CEICR (Crude Element Complexity Rating)

Posted: Mon Apr 04, 2022 10:15 pm
by sotis
Hello,

In certain functions after compilation I receive the following warning:

Note: CEICR (Crude Element Complexity Rating) for this function is: MODERATE

Can someone explain what this metric means (it is my suspicion that is related with code optimization?) and how can be improved?
It seems that the documentation is lacking an entry on this warning (or I cannot find it).

best regards,
Sotiris

Re: CEICR (Crude Element Complexity Rating)

Posted: Mon Apr 04, 2022 11:26 pm
by sotis
I just noticed a recent post with the title

Crude Complexity Rating Fatal


and within Dino's comment answers more or less this question too.

best,
Sotiris

Re: CEICR (Crude Element Complexity Rating)

Posted: Wed Apr 06, 2022 2:21 am
by Dino
Hi,

Just try to make your programs more modular, smaller programs, dont include all the fields of the table/file just because they are there, include them in your program if your program really need those, that also helps with xref later on to find what programs need to be changed based on an attribute change, etc. This message started many many years ago as a way to tell you that once your program is converted internally in rpg, c, or whatever is needed to make it operational, you may hit some final code limits, like number of subroutines in an rpg program, number of fields that can be defined, etc.