CRITICAL
Rule Definition
Unreferenced Logical files may be the symptom of Dead Code. Dead Code must be avoided as it makes source code less readable and increases the cost of the software maintenance.
Warning:
Unreferenced code can also be the symptoms of missing code
Remediation
Check if the unreferenced Logical files is not the symptome of missing code and if it is not the case, remove them.
Fixed Code Sample
Reduce number of unreferenced logical files. Logical file are referred in RPG programs in following way
FMYFILE IF E DISK INFDS(FILEFBK)
Related Technologies
Technical Criterion
CWE-561 - Dead Code
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.