Avoid Main Procedures having in the same statement the combination of two words among : INDEX, SUBSTR, REPEAT, TRANSLATE (PL1) | CAST Appmarq

Avoid Main Procedures having in the same statement the combination of two words among : INDEX, SUBSTR, REPEAT, TRANSLATE (PL1)


Rule Definition
Mixing multiple builtins in the same statement will depreciate the performance and increase complexity of the program.

Remediation
Try to not have only one build in function in the same statement.

Violation Code Sample
I = INDEX(TEST1,REPEAT('T',15)) ;
Fixed Code Sample
CASTTEST1 = REPEAT('N',15);
I=INDEX(TEST1,CASTTEST1);

Related Technologies

Health Factor

  Total Quality Index


Technical Criterion
Documentation - Naming Convention Conformity

About CAST Appmarq

CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.

Benchmark Statistics

Global Compliance

97.27%

Total Violations
54
Total Opportunities
1,981
Average Violations / App.
10.80
The compliance score represents 1 minus the ratio between the number of times a rule has been violated compared to the number of opportunities in a set of applications that the rule could have been violated.

Industry Insights

Manufacturing

98.08%

Financial Services

94.26%

IT & Business Consulting

100.00%