Avoid calling programs statically | CAST Appmarq

Avoid calling programs statically


Rule Definition
Using static calls implies that both calling and called programs are linked at compilation time and are loaded at run-time in same memory location. It is better to use dynamic call to avoid that dependency.

Remediation
Try to replace static calls by dynamic calls.

Violation Code Sample
CALL "SUBPROG" USING RECORD-1.
Fixed Code Sample
WORKING-STORAGE SECTION. 
            01 PGM-NAME PICTURE X(8). 
            ... 
            MOVE "SUBPROG" TO PGM-NAME. 
            CALL PGM-NAME USING RECORD-1. (1)

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

45.65%

Total Violations
16,804
Total Opportunities
30,916
Average Violations / App.
2,400.57
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

Insurance

47.30%

Select from drop-down

53.91%

Financial Services

55.88%