LIST CC command
- NOTEXECUTED
- Lists all unexecuted statements in all of the CUs in the scope of the CC START command.
- EXECUTED
- Lists all executed statements in all of the CUs in the scope of the CC START command.
- ALL
- Lists all statements in all of the CUs in the scope of the
CC START
command, indicating which have been executed and which have not. - SOURCE
- Displays the source statement.
- NOSOURCE
- Specifies that the source statement will not be displayed.
Usage notes
LIST CC
lists all captured code coverage data.- A lowercase ‘x’ following the statement number indicates that the statement was executed. If the ‘x’ is not present, the statement was not executed.
CC START
must be in effect for code coverage data to exist.CC STOP
causes all code coverage data to be deleted.
Examples
The following examples show the output displayed in the z/OS® Debugger Log.
LIST CC;
In this example, the user enters
CC START
in IBTH013. 0059 Code Coverage: not executed in IBTH013
0060 76.1
0063 79.1
0069 Total Statements=50 Total Statements Executed=25 Percent Executed=50
LIST CC Executed;
In this example, the user enters
CC START
in IBTH013.0059 Code Coverage: executed in IBTH013
0061 77.1 x
0062 78.1 x
0063 80.1 x
0064 Total Statements=24 Total Statements Executed=10 Percent Executed=42
LIST CC SOURCE;
In this example, the user enters
CC START
in IBTH013
and has entry break points set in IBTH013A and IBTH013B.0059 Code Coverage: not executed in IBTH013
0060 76.1
0061 76 DISPLAY "IBTH013 - COBOL MAIN BEGINNING".
0062 79.1
0063 79 MOVE SPACES TO WK-TEXT-128-G
0064 Total Statements=24 Total Statements Executed=10 Percent Executed=42
0065 Code Coverage: not executed in IBTH013A
0066 45.1
0067 45 MOVE 0 TO WK-TIME.
0065 Total Statements=48 Total Statements Executed=20 Percent Executed=42
0066 Code Coverage: not executed in IBTH013B
0067 1103.1
0068 1103 MOVE SPACES TO WK-TEXT-128-G.
0069 Total Statements=72 Total Statements Executed=30 Percent Executed=42
LIST CC ALL SOURCE;
In this example, the user enters
CC START
in IBTH013.
0059 Code Coverage: All in IBTH013
0060 76.1
0061 76 DISPLAY "IBTH013 - COBOL MAIN BEGINNING".
0062 77.1 x
0063 77 MOVE SPACES TO PROG.
0064 78.1 x
0065 78 MOVE SPACES TO ZED.
0066 79.1
0067 79 MOVE SPACES TO WK-TEXT-128-G.
0068 80.1 x
0069 80 END.
0069 Total Statements=50 Total Statements Executed=25 Percent Executed=50
- Related references
- CC command