506 Supporting On Demand Business Applications with the IBM Problem Determination Tools
Example 17-2 Sample JCL for code coverage
000007 //COMPILE EXEC PGM=IGYCRCTL,
000008 // PARM='NOTEST,SOURCE,LIST,OBJECT,NOOPT,NONUMBER,LIB'
000009 //STEPLIB DD DSN=IGY.V3R4M0.SIGYCOMP,DISP=SHR
000010 //SYSLIN DD DSN=CHABERT.BOOK2005.COBOBJ(&MBR),DISP=SHR
000011 //SYSLIB DD DSN=CHABERT.TRADER.COPYLIB,DISP=SHR
000012 //SYSDEBUG DD DSN=CHABERT.BOOK2005.SIDEFILE(&MBR),DISP=SHR
000013 //SYSPRINT DD DSN=CHABERT.BOOK2005.COBLIST(&MBR),DISP=SHR
000014 //SYSUT1 DD UNIT=SYSDA,SPACE=(CYL,(1,1))
000015 //SYSUT2 DD UNIT=SYSDA,SPACE=(CYL,(1,1))
000016 //SYSUT3 DD UNIT=SYSDA,SPACE=(CYL,(1,1))
000017 //SYSUT4 DD UNIT=SYSDA,SPACE=(CYL,(1,1))
000018 //SYSUT5 DD UNIT=SYSDA,SPACE=(CYL,(1,1))
000019 //SYSUT6 DD UNIT=SYSDA,SPACE=(CYL,(1,1))
000020 //SYSUT7 DD UNIT=SYSDA,SPACE=(CYL,(1,1))
000021 //SYSIN DD DSN=CHABERT.BOOK2005.SOURCE(&MBR),DISP=SHR
17.1.7 Setting up your control file
The Coverage Utility uses assembler statements from the compiler listings to determine
where to insert breakpoints. You supply the names of the listing files in the Coverage Utility
control file.
Select 1 (CntlFile) from the main DTCU panel. The control file data set name will be based on
the defaults you have defined. In the control file, describe the compile units that you want to
be analyzed. In our test case, the control file name is
'userid.COVERAGE.DTCU(TRADERB)'. Select 1 (Edit).
The data in the control file consists of the following information:
򐂰 The type of listing file (COBOL)
򐂰 The names of the listing files for the programs that you want to test
򐂰 The names of the load modules that contain the code of each listing
򐂰 The copy to or from information for making copies of the object modules into which the
breakpoints are inserted

Get Supporting On Demand Business Applications with the IBM Problem Determination Tools (APA, DT, DT with Advanced Facilities, FA, File Export, FM, WS) now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.