Unused Routines Within Programs

This report lists all routines within a program that are not referenced within the program. These routines cannot be reached at runtime and therefore are considered dead code.

To generate this report, in Explore Projects view, go to Mainframe Reports list in the pane, to the right. Select Dead Code Reports then double-click the desired report to display the report wizard.

The Available programs area displays the resources available for report generation and allows the user to select the resources to be included in the report. Use the Name field to filter the contents of the list. Place the cursor over an icon to display a tooltip about the type of resource it displays and click it to display only the selected type of resource. To display the full name of the resource type, click the white arrow button to the left of the dialog window.

In Report generation options area, the selection indicates that the report appendix is displayed by default. Choose what additional data must be included in the appendix: show input details in appendix. The option Filter out unused EXIT routines for COBOL programs is selected by default; deselected it if you want to include these routines in the report. Use the arrow buttons to move the resources between the Available and Selected lists then click Finish to generate the report.

The Report summary section presents two charts that show usage ratio of programs that have unused routines, and the unused routines occurrences in program.

The Report details section shows for each program: the routine name, the number of statements, and the line in the program where the routine is located.