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
CEICR (Crude Element Complexity Rating)
Re: CEICR (Crude Element Complexity Rating)
I just noticed a recent post with the title
and within Dino's comment answers more or less this question too.
best,
Sotiris
Crude Complexity Rating Fatal
and within Dino's comment answers more or less this question too.
best,
Sotiris
Re: CEICR (Crude Element Complexity Rating)
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.
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.