The COBOL CloneDR identifies and displays code segments within a system that are identical or nearly identical (clones), supporting the consolidation of clones to reduce the size and increase the clarity and reliability of the source code.
COBOL CloneDR Features
Dialects: ANSI COBOL85, IBM VS COBOL II, IBM Enterprise, AS400. Other dialects can be accommodated.
Runs under Windows, not requiring mainframe execution platform
Works with arbitrary subsets of source code base
Can handles thousands of source files
Handles COPY and REPLACE preprocessor directives
Analysis can be parameterized by clone similarity threshold, clone size, maximum number of clone parameters, and other limits, allowing tailored use
Report characterizes each clone tuple by mass, number of instances, number of parameters, similarity ratio, language syntax category, length, and location, with each instance pictured
Produces a summary report in HTML including statistics sorted by various attributes and with links to HTML pages describing individual clones like this.
You can see a complete Clone Detection Report for a COBOL source code base of 77,000 lines that has 58% redundancy.
Eclipse/RDz COBOL CloneDR User Interface
For installations using the Rational Development for System Z (RDz) Environment, the CloneDR tool has an RDz-based, interactive GUI that supports:
Browsing of diagnostic results in an expandable tree view
Tree view diagnostics linked and integrated with an LPEX COBOL editor
Visual display of selected clone tuples in source code with parameter fragments (differences) listed in tree view and highlighted in editor
Direct access to statistical summaries