Batch examples

You can find JCL samples in hlq.SEQASAMP for batch jobs. The JCL samples contain the steps to build a test case, and then to specify, gather, process, and document code coverage for the test case.

The following members contain JCL samples of gathering code coverage in batch jobs:

Table 1.
Member name Compiler
EQACC1VZ
Enterprise COBOL for z/OS® and OS/390® V3
Enterprise COBOL for z/OS V3 and V4
EQACC2VZ Enterprise PL/I for z/OS V4.2 through V4.5 and V5
EQACC3VZ z/OS XL C
EQACC4VZ Enterprise COBOL for z/OS V5 and V6
The JCL samples consist of the following steps:
  1. Compile procedure
  2. Creating data sets
  3. Compiling the source
  4. Binding the output of the compiler to create a load module
  5. Clearing out the CCOUTPUT file
  6. Loading the CCPRGSEL Options file
  7. Loading the CCOBSSEL Selection file
  8. Running the load module, gathering code coverage data and writing out the CCOUTPUT file
  9. Running DTU E.4 - Observation extraction
  10. Running DTU E.5.1 - XML Report generation
  11. Running DTU E.5.2 - Presentation Report generation