You can specify a number of code coverage options from within your JCL by including them in the startup key.
// PARM.RUN=('/TEST(,,,TCPIP&&<IP_address_for_RDz_client>%<port_for_RDz_debug_UI_daemon>:*)')
//******* ADDITIONAL RUNTIME JCL HERE ******
//CEEOPTS DD *
ENVAR("AQE_DBG_V4LIST=//'USER.COBOL.LISTING'",
"AQE_STARTUP_KEY=CC,PRTPRIM,cclevel=FUNCTION",
"AQE_DBG_TRACE=/home/user/probe.trc")
/*
//CEEDUMP DD SYSOUT=*
| Property | Valid Values | Description |
|---|---|---|
| cclevel | MODULE, FUNCTION or LINE | Code coverage level |
| modulelist | path | The path to a file which contains the list of modules to include in a module level report. |
| moduleexcludelist | path | The path to a file which contains the list of modules to exclude from a code coverage report. Modules should be listed one per line, and the file may contain regular expressions. |
| prevresultpath | path | The path to a previous result. |
| reportformat | HTML, NONE | Report format, specify HTML to generate an HTML report in addition to the workbench report. |
| startupcommandlist | NONE, PREV, path | The path to a file which contains debug startup commands. Commands should be listed one per line within the file. |
| savesource | TRUE, FALSE | Whether or not source should be saved for the code coverage session. |
| tag | A string of alpha-numeric characters | A list of tags to associate with the code coverage result. Multiple tags should be enclosed in quotes and separated by a comma (,). |
| testid | A string of alpha-numeric characters | Test id |
| timeout | An integer | Number of seconds to wait for a debug engine response before timing out. The default is 120 seconds. The session will terminate and results already captured will be saved. Specifying 0 (zero) will wait indefinitely. |