Avoid Functions and Procedures not using the REORDER option (PL1) | CAST Appmarq

Avoid Functions and Procedures not using the REORDER option (PL1)

CRITICAL

Rule Definition
REORDER is one of the optimization options that are specified for a procedure or begin-block. The REORDER option allows the compiler to generate optimized code to produce the result specified by the source program when error-free execution takes place

Remediation
Always use the REORDER option for the procedures.

Violation Code Sample
PROC CASTOPTIONS(MAIN) (TEST1,TEST2,TEST3);
Fixed Code Sample
PROC CASTOPTIONS(MAIN) (TEST1,TEST2,TEST3) REORDER;

Related Technologies

Health Factor

  Total Quality Index


Technical Criterion
Efficiency - Memory, Network and Disk Space Management

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

21.08%

Total Violations
28,801
Total Opportunities
36,496
Average Violations / App.
4,800.17
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

28.37%

Financial Services

1.31%

IT & Business Consulting

59.55%