Why you should care
Avoid dangerous file usage patterns. File management contains dangerous usage patterns.
How we detect
CAST Highlight counts one occurrence each time one of these patterns are detected in source code:
- a file (only FD) declared in data division is open and not closed, or is closed without having been openned
- a COBOL source file has no INPUT-OUTPUT SECTION
- a COBOL source file has no FILE SECTION
- a FD <file> or SD <file> in file section is not declared with a SELECT <file> instruction in input-output section
References
Coming soon…
About CAST and Highlight’s Code Insights
Over the last 25 years, CAST has leveraged unique knowledge on software quality measurement by analyzing thousands of applications and billions of lines of code. Based on this experience and community standards on programming best practices, Highlight implements hundreds of code insights across 15+ technologies to calculate health factors of a software.