Avoid Programs declaring STATIC variables (PL1) | CAST Appmarq

Avoid Programs declaring STATIC variables (PL1)


Rule Definition
Using STATIC variables can cause unpredictable result in case of the program is preloaded into computer memory.

Remediation
Try to minimize use of static as much as possible.

Violation Code Sample
DCL  TEST  CHAR (1)  STATIC;

Related Technologies

Health Factor

  Total Quality Index


Technical Criterion
Programming Practices - Unexpected Behavior

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

70.12%

Total Violations
592
Total Opportunities
1,981
Average Violations / App.
118.40
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

84.16%

Financial Services

38.09%

IT & Business Consulting

98.88%