CEICR (Crude Element Complexity Rating)

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
sotis
Posts: 16
Joined: Thu Sep 16, 2021 11:37 pm

CEICR (Crude Element Complexity Rating)

Post 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
sotis
Posts: 16
Joined: Thu Sep 16, 2021 11:37 pm

Re: CEICR (Crude Element Complexity Rating)

Post 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
User avatar
Dino
Posts: 472
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: CEICR (Crude Element Complexity Rating)

Post 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.
Post Reply