Option E.1 Code Coverage Observation Viewer
The Viewer is Option E.1 in IBM® z/OS® Debugger Utilities. You can view the XML entries of the code coverage observations in a table format that facilities analysis. The Viewer uses either the original file of observations that were created by z/OS Debugger during a code coverage session, or the extracted Observation file after you apply the selection criteria.
After you select suboption 1, you are prompted to provide the name of the data set for the code coverage observations that you want to view. The following screen shows the panel with the name of the data set that the viewer uses.
------------- z/OS Debugger - Code Coverage Observation Viewer ---------------
Command ===>
Specify the name of a code coverage observation data set that you
want to browse.
The code coverage observation data set contains code coverage
observations generated from a z/OS Debugger
Code Coverage session.
Data Set Name:
Data Set Name . . . 'USERIBM.DBGTOOL.CCOUTPUT'
Volume Serial . . . (If not cataloged)
Press Enter to continue.
Press Exit or Cancel to exit.
After you specify the location of the file, press enter to move to the viewer where you can view the observations in table format. The following screen shows the entries for a group of observations. The viewer provides the following functions:
- Sort table entries.
- View an annotated listing that is associated with an entry.
------------- z/OS Debugger - Code Coverage Observation Viewe Row 1 to 6 of 11
Command ===> Scroll ===> PAGE
Enter / to sort the table entries.
Enter (V)iew table entry command to view source listing.
Run Date : 2013/05/14 Run Time: 16:41:05
Group ID 1: COST Group ID 2: BENEFIT User ID: USERIBM
Load Name: COB01 Prog Name: COB01A
Comp Date: 2013/05/07 Comp Time: 15:53:00 Debug override: N
Tot Stmts: 17 Exec Stmts: 15 Percent: 88.23%
-----------------------------------------------------------------------
Run Date : 2013/05/14 Run Time: 16:41:05
Group ID 1: COST Group ID 2: BENEFIT User ID: USERIBM
Load Name: COB01 Prog Name: COB01B
Comp Date: 2013/05/07 Comp Time: 15:53:00 Debug override: N
Tot Stmts: 10 Exec Stmts: 9 Percent: 90.00%
-----------------------------------------------------------------------
Run Date : 2013/05/14 Run Time: 16:41:05
Group ID 1: COST Group ID 2: BENEFIT User ID: USERIBM
Load Name: COB01 Prog Name: COB01C
Comp Date: 2013/05/07 Comp Time: 15:53:00 Debug override: N
Tot Stmts: 14 Exec Stmts: 12 Percent: 85.71%
-----------------------------------------------------------------------
Run Date : 2013/05/14 Run Time: 16:41:05
Group ID 1: COST Group ID 2: BENEFIT User ID: USERIBM
Load Name: COB02 Prog Name: COB02A
Comp Date: 2013/04/30 Comp Time: 10:51:00 Debug override: N
Tot Stmts: 27 Exec Stmts: 24 Percent: 88.88%
-----------------------------------------------------------------------
Run Date : 2013/05/14 Run Time: 16:41:05
Group ID 1: COST Group ID 2: BENEFIT User ID: USERIBM
Load Name: COB02 Prog Name: COB02C
Comp Date: 2013/04/30 Comp Time: 10:51:00 Debug override: N
Tot Stmts: 14 Exec Stmts: 12 Percent: 85.71%
-----------------------------------------------------------------------
Run Date : 2013/05/14 Run Time: 16:41:05
Group ID 1: COST Group ID 2: BENEFIT User ID: USERIBM
Load Name: COB31M Prog Name: COB31M
Comp Date: 2013/04/29 Comp Time: 16:25:00 Debug override: N
F1=Help F2=Split F3=Exit F7=Backward F8=Forward F9=Swap
F12=Cancel
When you enter a forward slash (/) in the sort the table entries field, you are prompted with a pop-up panel where you can choose the sorting options to sort the table entries to your specifications. The following screen shows the Table Sort Pop-up panel.
You can sort the table entries using column key number
(1 - 13) and sort sequence (A or D).
Attribute name Key order Sort sequence
Run date 1 A
Run time 2 A
Group ID 1
Group ID 2
User ID
Load module name 3 A
Program name 4 A
Compile date
Compile time
Debug override
Total statements
Executed statements
Percent
F1=Help F2=Split F3=Exit F7=Backward
F8=Forward F9=Swap F12=Cancel
You can view the annotated source listing for a program when it is available by entering V next to an entry. The source for the program associated with the entry is displayed. The source is annotated to show the code coverage. See Annotated listing format.