CC command

Controls whether code coverage data is collected.
Read syntax diagramSkip visual syntax diagramCC STARTSTOP ;

Usage notes

  • The CC START command collects data for the following compile unit or programs:
    • The currently qualified z/OS® Debugger compile unit from the point in the program where the command is entered.
    • Programs that are run after the CC START command is issued and that are selected by a user-specified action. This action can be stepping into a compile unit, setting a breakpoint in a compile unit, or defining a compile unit in the DTCN profile.
  • CC STOP deletes all code coverage data.
  • To view the code coverage information generated by CC START, issue LIST CC before entering CC STOP.
  • The collection of code coverage data can add a substantial amount of overhead. Therefore, it is a good practice to issue the CC START command only when you want to gather this data. Do not routinely issue the CC START command in debug sessions in which you do not want to gather this data.

Examples

  • Specify that code coverage data be collected.
    CC START;
  • List the code coverage data.
    LIST CC;
  • Specify that code coverage stop and the data be deleted.
    CC STOP;