To generate dead code statistics, and to set the Dead attribute to True for dead constructs in
Interactive Analysis, select
Perform Dead Code Analysis on the Workspace Verification options > Settings tab. The statistics comprise:
- Number of dead statements in the source file and referenced copybooks. A dead statement is a procedural statement that can
never be reached during program execution.
- Number of dead data elements in the source file and referenced copybooks. Dead data elements are unused structures at any
data level, all of whose parents and children are unused.
- Number of dead lines in the source file and referenced copybooks. Dead lines are source lines containing dead statements or
dead data elements.
You can view the statistics in the Statistic tab of the Properties window for an object or in the Complexity Metrics tool.