Configuring Xpediter/Code Coverage. Compuware Mainframe
Oglas
Oglas
2-1
Chapter 2.
Configuring Xpediter/Code Coverage
This chapter provides step-by-step instructions for the completion of the Code Coverage installation. Although the full Xpediter/Code Coverage configuration procedure is discussed in this chapter, you may only need to perform certain portions depending on which product features are used at your site.
Topics presented in this chapter include:
• Establishing Security and Interaction Parameters
– ”Step 1. Establish Security Procedures”
– ”Step 2. Install ISPF Support”
– ”Step 3. Create a Results Repository Dataset”
– ”Step 4. Global Filter File Implementation”
– ”Step 5. Limit Record Deletion Capabilities”
– ”Step 6. Install Mainframe Xpediter Product(s)”
– ”Step 7. Enable the License Management System”
• Configuring CICS for Use with Code Coverage
– ”Preliminary CICS Considerations”
– ”Overview of Using Code Coverage with Xpediter/CICS”
– ”Step 1. Create and Format the Program Inventory for CICS”
– ”Step 2. Create an Extract Dataset for CICS”
– ”Step 3. Create JCL Template Dataset for CICS”
– ”Step 4. Create the XVTCSPEC Dataset for CICS”
– ”Step 5. Update the CICS Resource Definitions”
– ”Step 6. Update the CICS Startup JCL”
– ”Step 7. Review Global Parameters Table”
– ”Step 8. Create the CICS Code Coverage Global Table Parameter Overrides
• ”Verifying the Code Coverage Installation”
• ”Installing the Code Coverage PC Component (Optional)”.
Establishing Security and Interaction Parameters
These steps deal primarily with Code Coverage access and interaction with other products.
Step 1. Establish Security Procedures
If your site uses a security package, assign the protections shown in Table 2-1 for datasets
that were created in previous steps.
Table 2-1.
Code Coverage Library Security Requirements
Library Access Required for Programmers
INSTALL NO access
SLXVLOAD READ/EXECUTE access
SLXVCLIB READ access
SLXVMENU READ access
SLXVPENU READ access
2-2
Xpediter/Code Coverage Installation and Configuration Guide
Table 2-1.
Code Coverage Library Security Requirements
Library Access Required for Programmers
SLXVSENU READ access
SLXVTABL READ access
Step 2. Install ISPF Support
Testing with Xpediter/Code Coverage interactively might require an increase in the default TSO logon region size. Xpediter/Code Coverage requires about 250K.
1. Create an ISPF logon PROC or CLIST.
2. Establish a way of allocating the Xpediter/Code Coverage datasets (such as
.SLXVPENU or .SLXVSENU) to each user of Code Coverage.
The following are two suggested methods:
– Modify or create TSO logon PROCs to concatenate Xpediter/Code Coverage libraries to the appropriate DD cards.
– Use the LIBDEF command. The SLXVSAMP member XPCOVER illustrates how to allocate the required Code Coverage datasets. Place this CLIST in a suitable CLIST library, then tailor it by following the embedded instructions.
Regardless of the option you choose, the following Xpediter/Code Coverage datasets must be concatenated into the listed ddnames. Replace CPWR.MLXV170 with the values used for the installation of Xpediter/Code Coverage.
Table 2-2.ISPF Support Dataset Concatenation
ddname Dataset Name
SYSPROC CPWR.MLXV170.SLXVCLIB
ISPLLIB CPWR.MLXV170.SLXVLOAD
ISPMLIB CPWR.MLXV170.SLXVMENU
ISPPLIB CPWR.MLXV170.SLXVPENU
ISPSLIB CPWR.MLXV170.SLXVSENU
ISPTLIB CPWR.MLXV170.SLXVTABL
3. If Xpediter/CICS has been installed, add the following datasets for the Program
Inventory Utility:
Table 2-3.Xpediter/CICS Datasets for use with the Program Inventory Utility
ddname Dataset Name
ISPTLIB CPWR.MLXV170.SLXVTABL
ISPLLIB CPWR.cMXDnnn.SMXDOxxL
4. Replace CPWR.MLXV170 with the values used for the installation of Xpediter/Code
Coverage. Replace CPWR.cMXDnnn.SMXDOxxL, with the appropriate load library.
Refer to the table “Load Libraries for CICS Release Support” in the Xpediter/CICS
Installation and Configuration Guide for the default dataset names.
5. If your site uses any security processing that restricts the programs that can be used as TSO commands, make sure the following programs are available to your users and are not affected by any such restrictions:
– XVTTACMT
– XVTTADSN
– XVTTAENQ
Configuring Xpediter/Code Coverage
2-3
– XVTTAFGN
– XVTTAFIL
– XVTTAFLG
– XVTTAJCL
– XVTTAMNT
– XVTTARGN
– XVTTASDL
– XVTTAU01.
6. Provide a way to invoke the Xpediter/Code Coverage product.
– If you pre-allocated all the required Xpediter/Code Coverage libraries, the basic
ISPF (internal) subcommand needed to invoke the Code Coverage product is:
'SELECT CMD(XVTTCGO) NEWAPPL(XVTC) PASSLIB'
– If you tailored the XPCOVER CLIST and put it in the SYSPROC concatenation or activated it with an ALTLIB command, enter:
SELECT CMD(%XPCOVER)
– If you tailored the XPCOVER CLIST into some other library, enter:
SELECT CMD(EXEC 'YOUR.LIBRARY.CLIST(XPCOVER)')
You also have options for specifying the SELECT command:
– You can specify it as a part of a command table entry for a verb such as
CODECOVR.
– You can establish the command as an option by editing an ISPF panel. If you establish the command as a panel option, the following is recommended for the
ISPF menu text:
XV Xpediter/Code Coverage - Code Analysis and Program Report Generation
Tool
The following would be added to the processing section TRANS statement:
XV, 'xxxx' where xxxx is the parameter of the appropriate SELECT command described above (omitting the SELECT verb). For example, if you tailored the XPCOVER
CLIST and put it in the SYSPROC concatenation as shown above, the following statement would be added to the processing section TRANS statement:
XV CMD(%XPCOVER)
7. If Xpediter/CICS has been installed, Compuware recommends completing the following steps to ensure the availability of the Program Inventory Utility: a. After creating or modifying the logon PROC or CLIST for Code Coverage, enter
Code Coverage and choose option 5 (ISPF option 0.5) from the Defaults menu.
b. Enter the name of the default program inventory file for all users.
c. Enter the name of the excludes file distributed with Xpediter/CICS:
‘CPWR.cMXDnnn.SMXDSAMP(POPEXCL)’ where nnn is the release of Xpediter/CICS, and c designates the CICS release.
Refer to the SMXDSAMP ddname in the table named “Libraries Created During
Installation with SMP/E” in the Xpediter/CICS Installation and Configuration Guide for the default dataset name.
d. Choose option 6 (Code Coverage option 0.6) from the Defaults menu and enter the names of all the default Xpediter/CICS application load libraries.
e. Choose option 7 (Code Coverage option 0.7) from the Defaults menu and enter the names of all the default Xpediter/CICS source listing files.
2-4
Xpediter/Code Coverage Installation and Configuration Guide
f. Access the ISPF Primary Option Menu, and select option 3.3 (Move, or copy members or datasets). Copy your profile (ISPFPROF) dataset member XVTCPROF to CPWR.MLXV170.SLXVTABL, the new Code Coverage dataset.
8. If Xpediter/TSO is installed and the JCL convert option is necessary, the
CPWR.MLXV170.SLXVSENU dataset member XVTTSJ02 must be tailored with the names of your ISPF datasets and the Xpediter/TSO XOPTIONS dataset name. Change the names to reflect your datasets. These datasets are marked with ***TAILOR**** in the member.
Step 3. Create a Results Repository Dataset
Note: You may postpone this step until the remaining installation steps have been
completed, but it must be performed before Code Coverage can be used.
Results Repository datasets can be used to save or accumulate data created through the use of the Xpediter/Code Coverage product. Code Coverage utilities will allow you to maintain your Results Repository datasets. You can create and delete the Repository datasets. You can list or delete Repository members by system, load module, or individual program entry. You can also export and import Repository members, or merge member records from one Results Repository into another.
The screen shown in Figure 2-1 can be used to build a batch job that will create or delete
an Xpediter/Code Coverage Results Repository dataset. The batch job will perform the actual allocation or deletion of the dataset.
When you select option 1 from the Code Coverage UTILITIES screen and press Enter, the
screen shown in Figure 2-1 will be displayed:
Figure 2-1. Code Coverage Repository Utility Screen
----------------- CODE COVERAGE 17.02 - REPOSITORY UTILITY --------------------
COMMAND ===>
Commands: C (Create file) D (Delete file)
Repository File ===> 'ACMJET0.V31.REPOSIT'
Management Class ===> (optional)
Storage Class ===> (optional)
Volume ===> (optional)
Unit ===> (optional)
Space Units ===> CYL (CYL/MB)
Primary Quantity ===> 10
Edit JCL ===> NO (Yes/No)
ENTER to process or enter END command to terminate
Perform the following steps to create or delete a Repository dataset:
1. Enter a C on the COMMAND line to create a dataset or a D to delete a dataset.
2. Enter the name of the dataset to be created or deleted in the Repository File field.
The name can be qualified with quotes or it can be unqualified. Unqualified names will have the user prefix added to the beginning of the name.
3. During the create process only, do the following:
Configuring Xpediter/Code Coverage
2-5
• If your dataset is an SMS managed dataset, enter an SMS management class or storage class in the appropriate field. The Volume and Unit fields should be left blank. The system will automatically assign them.
• If your dataset is a non-SMS dataset, enter the specific volume serial number or the generic unit name for the dataset in the appropriate field. When a unit name is specified, a sequential dataset is dynamically allocated to a volume on that unit. The
IDCAMS batch job will delete that sequential dataset and allocate the VSAM dataset on that volume.
• Enter cylinders (CYL), records (REC), tracks (TRK), or megabytes (MB) in the Space
Units field and the desired number in the Primary Quantity field. The default size of
10 cylinders should provide space for system(s) consisting of about 1000 programs, with each having 800 executable statements. The size of each record is:
(8
number of executable verbs) + 160.
4. If you would like to review the JCL before submitting it, type Y or YES in the Edit JCL field.
The job card previously specified on the Code Coverage JOB INFORMATION screen is automatically inserted. The JCL can be modified before submitting the job.
Step 4. Global Filter File Implementation
The Global Filter File is intended to provide your site with a common library for filters that can be copied for use across the enterprise. By using your security system, you can control who has access to the Global Filter File.
To create a Global Filter File, use a PDS or PDSE dataset with LRECL=150 and RECFM=FB.
The BLKSIZE can be determined based on your site’s requirements. Space requirements are dependent on the quantity and size of the filters you save. Each filter is equal to one record in the Filter File member, while the filter description also occupies one record in each Filter File member.
Note: The Retrieve Filters screens that display the Global Filter File name do not allow
the name to be modified.
The variable GBLFDSN contains the name of the Global Filter File and can be up to 44 characters long. The initial value of this variable is set to blanks, indicating that the
Global Filter File is not being used. To change the value of GBLFDSN so that the Global
Filter File will be used, follow the instructions in member JCLGLOBL in the SLXVSAMP
library. See Figure 2-2 on page 2-6.
1. Edit the JCL in member JCLGLOBL in the SLXVSAMP library as follows: a. Insert a valid job card.
b. Change the high-level qualifier to your site’s high-level qualifier for all the libraries pointed to by the CHANGE identifier.
c. Type the fully-qualified dataset name of the Global Filter File enclosed in quotes immediately following the literal GBLFDSN=. The correct line in the JCL is pointed to by the GLOBAL identifier.
2. Submit the job. This will create a module that contains the name of your Global
Filter File. The job should end with a CC=0.
After you have implemented the Global Filter File, if you decide not to use it, change the value of variable GBLFDSN to blanks and resubmit the job. The job should end with a
CC=0.
2-6
Xpediter/Code Coverage Installation and Configuration Guide
Figure 2-2. JCL to Enable the Global Filter File
//*YOUR JOBCARD
//*------------------------------------------------------------------*
//* - ADD A JOB CARD. *
//* *
//* - CHANGE CPWR.XV TO YOUR HIGH LEVEL QUALIFIER FOR THE *
//* CODE COVERAGE LIBRARIES. THE LINES THAT NEED TO BE CHANGED *
//* ARE IDENTIFIED BY THE LITERAL '<=== CHANGE' IN COLUMN 58. *
//* *
//* - CHANGE CPWR.GLOBAL.FILTER.FILE TO YOUR FILTER FILE NAME. *
//* THE LINE THAT NEEDS TO BE CHANGED IS IDENTIFIED BY THE *
//* LITERAL '<=== GLOBAL' IN COLUMN 58. REFER TO THE *
//* XPEDITER/CODE COVERAGE INSTALL MANUAL FOR A DESCRIPTION OF *
//* THE PARAMETER. *
//* *
//* - SUBMIT THE JOB. IT SHOULD END WITH A CC=0. *
//* *
//*------------------------------------------------------------------*
//ASM EXEC PGM=ASMA90,
// PARM='OBJ,RENT,XREF(FULL),MXREF'
//SYSIN DD *
XVTGLOBL , X
GBLFDSN='CPWR.GLOBAL.FILTER.FILE' <=== GLOBAL
//SYSLIB DD DISP=SHR,DSN=SYS1.MACLIB
// DD DISP=SHR,DSN=CPWR.XV.SLXVSAMP <=== CHANGE
//SYSUT1 DD UNIT=SYSDA,SPACE=(TRK,(2,5))
//SYSUT2 DD UNIT=SYSDA,SPACE=(TRK,(2,5))
//SYSLIN DD DISP=(NEW,PASS),
// DCB=(LRECL=80,RECFM=FB,BLKSIZE=4000),
// SPACE=(CYL,(1,1)),UNIT=VIO
//SYSPUNCH DD DUMMY
//SYSPRINT DD SYSOUT=*
//**-----------------------------------------------------------------
//LKED EXEC PGM=HEWL,COND=(0,NE,ASM),
// PARM='MAP,LET,REUS,RENT,AMODE(31),RMODE(ANY)'
//SYSLIB DD DISP=SHR,DSN=CPWR.XV.SLXVLOAD <=== CHANGE
//SYSLMOD DD DISP=SHR,
// DSN=CPWR.XV.SLXVLOAD <=== CHANGE
//SYSOBJ DD DISP=(SHR,PASS),
// DSN=*.ASM.SYSLIN
//SYSUT1 DD DSN=&SYSUT1,UNIT=SYSDA,SPACE=(CYL,(3,2))
//SYSPRINT DD SYSOUT=*
//SYSLIN DD *
INCLUDE SYSOBJ
ENTRY XVTTAGBL
NAME XVTTAGBL(R)
Step 5. Limit Record Deletion Capabilities
If your site wishes to restrict the deletion of records in the Code Coverage List/Delete utility to specific individuals, this function is available through a generic or specific
RACF dataset profile. Add ALTER authority to those users that will be allowed to delete any record in the dataset. When Code Coverage attempts to delete a record, it will issue a
RACROUTE macro to determine if the user deleting the records has ALTER authority. If the user does not have authority to delete the records, they only will be permitted to delete records containing their own userID.
Step 6. Install Mainframe Xpediter Product(s)
Code Coverage can only be used in conjunction with Compuware’s mainframe interactive analysis and debugging tools Xpediter/TSO, Xpediter/IMS, or Xpediter/CICS.
The analysis done with your Xpediter debugger serves as input to Xpediter/Code
Coverage.
Configuring Xpediter/Code Coverage
2-7
1. If necessary, go to the applicable Installation and Configuration Guide and perform the complete installation of the Xpediter products licensed at your site.
This process will include the installation of Compuware Shared Services (CSS), which is also used by Code Coverage.
2. When your Xpediter debugger has been installed or had the necessary maintenance applied, continue with the Code Coverage installation procedure from this point.
Step 7. Enable the License Management System
Note: If you installed a new of release of Xpediter/TSO, Xpediter/IMS, or Xpediter/CICS
in the previous step, LMS was installed as part of that process.
Compuware provides the License Management System (LMS) to help manage access to
Compuware’s products at your site. LMS includes several components that together allow you to establish, maintain, diagnose, and upgrade access to the Compuware products licensed by your enterprise.
You install LMS from the Enterprise Common Components (ECC) installation media.
Separately, via e-mail, you receive a License Certificate for Xpediter/Code Coverage.
IMPORTANT:
Xpediter/Code Coverage operation requires these steps:
1. Ensure that the Compuware License Management System has been installed from the
ECC media.
Refer to the Enterprise Common Components Installation and Customization Guide for installation procedures. This step is only necessary for a first-time install or when upgrading the License Management System itself.
2. Import the License Certificate into your License File.
3. Establish and update the Runtime License Management System by running the program LMSINIT.
Follow the License Certificate Import Procedure of the Compuware License Management
User/Reference Guide for detailed instructions.
Configuring CICS for Use with Code Coverage
Preliminary CICS Considerations
Before Code Coverage can be used under Xpediter/CICS, several considerations must be taken into account:
• All dataset members referred to in this section can be found in the Xpediter/CICS
SMXDSAMP library.
Refer to the SMXDSAMP ddname in the table named “Libraries Created During
Installation with SMP/E” in the Xpediter/CICS Installation and Configuration Guide for the default dataset name.
• A Program Inventory file must be created. This is normally done during Code
Coverage installation. See “Step 1. Create and Format the Program Inventory for
CICS” on page 2-11 for more information.
• The Program Inventory file must be populated with the names of all the programs for which you want to collect data. You can use COLLECT control statements from within the Populater to designate specific programs for Code Coverage monitoring, or use the Program Inventory Utility to select covered programs. For more
2-8
Xpediter/Code Coverage Installation and Configuration Guide
information, refer to Chapter 12, “CICS Populater” and Chapter 13, “Program
Inventory Utility” in the Xpediter/Code Coverage Mainframe User/Reference Guide.
• You must ensure the value of the Xpediter/CICS global parameter XDCC is set to YES
(the default).
• You must ensure the value of the Xpediter/CICS Code Coverage global parameters
XVCC and XVSC match the transaction codes which default to XVCC and XVSC.
Optionally, you may use the global overrides.
• You must ensure the load library containing Xpediter/CICS has been added to the
DFHRPL concatenation. This loadlib is provided as CPWR.cMXDnnn.SMXDOxxL.
• You must ensure the load library containing Code Coverage has been added to the
DFHRPL concatenation. CPWR.MLXV170.SLXVLOAD is the default name for this loadlib.
• You must ensure a DD statement for the Code Coverage Program Inventory dataset
XVTPGINV has been added to your site’s startup JCL. Do not define this file with
RDO.
Note: If this DD does not point to a valid program inventory dataset, you will
receive a message stating that Code Coverage is not active. If Code Coverage is not active, refer to the joblog regarding messages related to this dataset.
• You must create an Extract dataset (XVTCEXTR) for the intermediary Code Coverage
data. See “Step 2. Create an Extract Dataset for CICS” on page 2-13 for more
information.
• Compuware strongly recommends that you create a JCL Template dataset
(XVTCEXTJ) that contains the JCL to write the intermediary Code Coverage data to
• Optionally, you can create a Save Specifications dataset (XVTCSPEC) to provide an
Specification Dataset Access
The XVTCSPEC dataset (Specification Dataset) is accessed from both the Test Definition and Specification Archive screens. On the Specification Archive screen, the user has the ability to delete a record. If a delete of a record is requested, the product programmatically performs a call to see if the user is authorized to use the XVSC transaction. If they are authorized to use this transaction, they are considered to be an
“Administrator”, and the record will be deleted. If they are not authorized to use the
XVSC transaction, they are considered to be a “Standard” user, and the record can only be deleted if their userID matches the ownerID of the record. Refer to the section
”XVCC/XVSC Transaction Security” for a discussion of product privileges.
XVCC/XVSC Transaction Security
The Xpediter/CICS component of Xpediter/Code Coverage provides two transactions to gain access to the product to define and/or view collection specifications. A user who has been granted authority to use the XVCC transaction is considered to be a “Standard” user. A user who has been granted authority to use the XVSC transaction is considered to
Configuring Xpediter/Code Coverage
2-9
be an “Administrator”. The demarcation between a “Standard” user and an
“Administrator” is noted in the following table.
Table 2-4.
Standard and Administrator Transaction Authority
User Type
Transaction Authority
Privileges
XVCC XVSC
Standard Yes
Administrator Yes
No
Yes
Access to all screens in the Xpediter/CICS component of
Xpediter/Code Coverage. Deletion of records in the
Specification Dataset is limited to records where their userID matches the ownerID of the record.
All the same access as a “Standard” user but can delete any record in the Specification Dataset.
Dataset Security Requirements
Table 2-5 lists the required security for several Xpediter/Code Coverage datasets.
Table 2-5.
Dataset Security
Dataset Security Requirements
XVTCPGINV Users who will populate the program inventory after a compile will required READ and
UPDATE authority.
XVTCEXTR The hardening utility job will require the userID associated with the job to have READ and
UPDATE authority. In the CICS region, authority is associated with the userID of the region, and READ and UPDATE access is required.
XVTCSPEC Authority is associated with the userID associated with the CICS region. READ, UPDATE, and
DELETE access is required. Refer to the section “XVCC/XVSC Transaction Security” on page
2-8 for a discussion of privileges associated with users of those transactions.
XVTCEXTJ Authority is associated with the userID associated with the CICS region. READ access is required.
Overview of Using Code Coverage with Xpediter/CICS
Using Code Coverage with Xpediter/CICS is a three-stage process:
• Program preparation
• Online data collection
• Reporting.
The entire process is illustrated in Figure 2-3 on page 2-10. For more information, see the
Xpediter/Code Coverage Mainframe User/Reference Guide.
2-10
Xpediter/Code Coverage Installation and Configuration Guide
Figure 2-3. Xpediter/Code Coverage Process in a CICS Environment
Configuring Xpediter/Code Coverage
2-11
Step 1. Create and Format the Program Inventory for CICS
Note: If your site will not be using Xpediter/CICS to collect Code Coverage data, skip
ahead and begin with “Installing the Xpediter/Code Coverage PC Component” on page 5-1.
Xpediter/Code Coverage can collect data on selected Xpediter/CICS programs during testing with Xpediter/CICS. A Program Inventory (PGMINV) designates the programs for which Code Coverage collects data. This Program Inventory also enhances the efficiency of the Code Coverage data collection function in an Xpediter/CICS region. It contains an entry for each CSECT in an Xpediter/CICS region’s DFHRPL concatenation that has an
Xpediter source listing file entry with a matching date and time stamp.
The JCL used to create a Program Inventory can also be used to reformat an existing one.
If an existing PGMINV is reformatted, the dataset’s secondary allocation can be used.
Keep in mind that when you reformat an existing Program Inventory, all data in the dataset will be erased.
Determining Appropriate Size for the Program Inventory Dataset
Each member of the Program Inventory dataset will occupy at least one block, assuming half-track blocking. Because one block can accommodate approximately 1750 verbs, 5000 programs of that size or smaller would require roughly 175 cylinders. Larger programs would require roughly one additional block for every additional 1750 verbs.
For an approximation of program sizes, run the Populate Utility for a representative sample of the programs. Then use XVTCUTIL to produce a directory listing containing the verb count for each program. Overall statistics are included at the bottom of the listing.
On the FORMAT statement in member JCLALLOC, BLOCKS should be 30 × cylinders
(with half-track blocking), and DIRENTS should equal the maximum number of members.
Create a Program Inventory Dataset
Note: Reformatting an existing Program Inventory will erase all data in the dataset.
The Program Inventory dataset must be created and formatted before it can be used by
Xpediter/Code Coverage. The necessary JCL is provided in Xpediter/CICS SMXDSAMP
member JCLALLOC (Figure 2-4 on page 2-13 below). Once you have formatted a Program
Inventory, you cannot alter its space allocation (number of TRKS or CYLS) or DCB attributes (RECFM, LRECL, or BLKSIZE). In order to change DCB attributes, a Program
Inventory must be re-allocated and formatted.
1. Make the necessary edits to the JCL used to create the PGMINV dataset.
The DCB attributes of the Program Inventory dataset are RECFM=FBS, and the
LRECL/BLKSIZE must be equal. The BLKSIZE determines the size of a physical record and will default to half-track blocking. The space allocation must allow enough primary and secondary extents to cover the number of blocks to be formatted. The number of blocks to be formatted is specified on a FORMAT command using the keyword parameters described below.
2-12
Xpediter/Code Coverage Installation and Configuration Guide
IMPORTANT
The ISPF Program Inventory Utility cannot be used to format a CICS Program
Inventory file.
GROUPCNT
The GROUPCNT keyword parameter, abbreviated GC, is used to specify the number of blocks which comprise an extent. For example, if GROUPCNT is 7, then space for each program inventory member will be allocated in increments of 7 blocks. This number must be between 7 and 31 (inclusive). The default is 7.
BLOCKS
The BLOCKS keyword parameter, abbreviated BLK, represents the number of physical records to be formatted. The size of a physical record is specified by the DCB BLKSIZE attribute. Regardless of the JCL SPACE allocation, only this number of BLKSIZE records will be formatted. The default is 3000. When using a half-track blocking factor, this default equates to 1500 tracks or 100 cylinders.
DIRENTS
DIRENTS, abbreviated DENT, specifies the minimum number of directory entries to be allowed. The value specified should be greater than the maximum number of programs to be tested with Xpediter/Code Coverage. The PGMINV directory is a preallocated, contiguous area within the Program Inventory. This number cannot be changed after PGMINV has been formatted. The default is 1500. Any reasonable value for the number of entries (that is, a value not exceeding the available blocks) can be specified.
AUTODELETE
AUTODELETE, abbreviated ADEL, optionally specifies that old members may be deleted by the Populate Utility if space is needed to add a new member. If NO is specified for AUTODELETE, the attempt to add the new member will fail. If YES is specified for AUTODELETE, old members will be deleted until sufficient space is available for the new member. All deletes are logged by the Populate Utility. The default is YES.
2. When the necessary edits have been performed and a valid job card inserted, submit the JCL to create and format the Program Inventory.
Notes:
• The installer does not need to load the Program Inventory or designate which programs are to be tested with Code Coverage. These steps should be performed later by the user. For more information, refer to the chapter entitled “CICS Populater” in the Xpediter/Code Coverage Mainframe User/Reference Guide.
• A single Program Inventory can be shared by multiple Xpediter/CICS regions.
• Users of the Program Inventory require UPDATE access.
• Allocating the Program Inventory dataset on multiple DASD volumes is not supported and will result in error XVTC8306E being issued during product initialization.
Configuring Xpediter/Code Coverage
2-13
Figure 2-4. JCL to Create and Format the Program Inventory (JCLALLOC)
//* YOUR JOB CARD HERE
//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//*
//* CODE COVERAGE INSTALL STEP: JCLALLOC
//*
//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//* JCLALLOC: EXECUTE THE CODE COVERAGE UTILITY PROGRAM XVTCUTIL.
//* CODE COVERAGE UNDER CICS USES A SPECIAL FORMAT FILE
//* CALLED THE "PROGRAM INVENTORY FILE". THIS UTILITY IS
//* DESIGNED TO MANIPULATE THE PROGRAM INVENTORY FILE AND
//* THE MEMBERS IT CONTAINS.
//*
//* THIS JCL MEMBER IS USED TO ALLOCATE AND FORMAT A
//* PROGRAM INVENTORY FILE. USE JCL MEMBER JCLCUTIL FOR
//* ALL OTHER UTILITY FUNCTIONS.
//*
//*
//* KEY DDNAMES AND THEIR FUNCTION
//* -------------------------------------------------------------------
//* CONTROL - SPECIFIES ACTION(S) TO BE PERFORMED.
//*
//* XVTPGINV - NAMES THE PROGRAM INVENTORY FILE TO BE MANIPULATED.
//*
//*
//* XVTCUTIL CONTROL STATEMENT(S)
//* -------------------------------------------------------------------
//* FORMAT GROUPCNT=7,BLOCKS=3000,DIRENTS=1500,AUTODELETE=YES
//* | | / / /
//* | | / / /
//* | | / / /
//* | | / / |- DEL OLDEST WHEN NOSPACE
//* | | / |- NBR OF MEMBERS IN FILE
//* | | |- NBR OF BLOCKS TO FORMAT (DCB=BLKSIZE)
//* | |- NBR OF BLOCKS PER GROUP (FROM 7-31)
//* |- BUILD/INITIALIZE A "PROGRAM INVENTORY FILE"
//*
//* ONLY SPACE= AND DISP= ARE REQUIRED FOR DATASET ALLOCATION OF A
//* PROGRAM INVENTORY FILE. AUTODELETE DEFAULTS TO "YES", BUT CAN
//* BE SPECIFIED AS "NO". INITIAL ALLOCATION CAN BE PERFORMED IN
//* CONJUNCTION WITH THE "FORMAT" COMMAND.
//*
//*********************************************************************
//*
//STEP1 EXEC PGM=XVTCUTIL
//STEPLIB DD DISP=SHR,DSN=CPWR.cMXDnnn.SMXDOccL <== CHECK DSN
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//*
//XVTPGINV DD DSN=XPEDITER.CICS.PGMINV, <== CHECK DSN
// SPACE=(CYL,(100,10),RLSE),
// UNIT=SYSDA,
// DISP=(NEW,CATLG)
//*
//CONTROL DD *
FORMAT GROUPCNT=7,BLOCKS=3000,DIRENTS=1500
/*
Step 2. Create an Extract Dataset for CICS
Code Coverage data collecting during Xpediter/CICS testing is written out to an intermediary extract dataset before being entered into the Code Coverage Results
Repository.
2-14
Xpediter/Code Coverage Installation and Configuration Guide
1. Find the JCL to create the Code Coverage extract dataset.
This dataset is provided in Xpediter/CICS SMXDSAMP member JCLCDEFR and shown
2. Edit the JCL according to the included comments shown in Figure 2-5, inserting a
valid job card and specifying the dataset name, volume, and space values chosen for your site.
3. When the necessary edits have been performed, submit the JCL to create the extract dataset.
IMPORTANT
Compuware recommends that the Code Coverage extract dataset be unique for each Xpediter/CICS region collecting Code Coverage data. However, the extract dataset may be shared under the following conditions: each CICS region collecting data intends to write this data to the same Code Coverage repository, and the resource definition specifies the DSN for the extract dataset and
Opentime(Firstref) to allow CICS to dynamically allocate and deallocate this file.
Also, Code Coverage users will need sufficient authority to add records to this dataset.
Figure 2-5. JCL to Create the Extract Dataset (JCLCDEFR)
//* YOUR JOB CARD HERE
//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//*
//* CODE COVERAGE INSTALL STEP: JCLCDEFR
//*
//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//*
//* THE FOLLOWING JCL WILL ALLOCATE THE XPEDITER/CICS CODE COVERAGE
//* EXTRACT DATASET. SUPPLY THE VOLSER, UNIT, DSN AND SPACE
//* PARAMETERS.
//* THIS JCL IS IN INTENDED AS AN EXAMPLE.
//* PLEASE CONSULT THE INSTALLATION GUIDE BEFORE RUNNING.
//*
//AMS EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE (XV.XVTCEXTR) PURGE /* CHECK DSN */
DEFINE CLUSTER -
(NAME(XV.XVTCEXTR) /* CHECK DSN */ -
VOLUMES(??????) /* <== CHECK VOLUME */ -
CYLINDERS(10 10) /* <== CHECK SPACE */ -
RECORDSIZE(8 32760) /* DO NOT MODIFY */ -
REUSE /* DO NOT MODIFY */ -
SPANNED /* DO NOT MODIFY */ -
NONINDEXED /* DO NOT MODIFY */ -
SHAREOPTIONS(1 3)) /* DO NOT MODIFY */
Step 3. Create JCL Template Dataset for CICS
Immediately after Code Coverage data is written out to the extract dataset, JCL is automatically executed to reformat the data and transfer it to the Code Coverage Results
Repository. This JCL resides in the Code Coverage JCL template dataset.
Note: The global parameter SUBMIT can be used to disable the automatic formatting
and transfer of data to the Code Coverage Results Repository. If you prefer to manually submit a job whenever you would like the transfer of data to the Code
Coverage Results Repository to occur, refer to the Xpediter/CICS SMXDSAMP member JCLCHRD.
Configuring Xpediter/Code Coverage
2-15
1. Find the JCL to create and load the Code Coverage JCL template dataset. It is
provided in Xpediter/CICS SMXDSAMP member JCLCDEFJ as shown in Figure 2-6.
2. Edit the JCL according to the included comments shown in Figure 2-6, inserting valid
job cards and specifying the dataset names, volume, and space values chosen for your site.
3. When the necessary edits have been performed, submit the JCL to create the JCL template dataset.
IMPORTANT
A single JCL template dataset can be shared by multiple Xpediter/CICS regions under the following conditions: each CICS region sharing this JCL template dataset is writing to the same Code Coverage repository and the DSN for the template dataset is specified in the resource definition to allow CICS to dynamically allocate and deallocate this file.
2-16
Xpediter/Code Coverage Installation and Configuration Guide
Figure 2-6. JCL to Create the JCL Template Dataset (JCLCDEFJ)
//* YOUR JOB CARD HERE
//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//*
//* CODE COVERAGE INSTALL STEP: JCLCDEFJ
//*
//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//* JCLCDEFJ - IDCAMS JCL TO ALLOCATE THE XPEDITER/CICS CODE COVERAGE
//* JCL TEMPLATE DATASET.
//*
//* THE FOLLOWING JCL WILL ALLOCATE AND LOAD THE XPEDITER/CICS
//* CODE COVERAGE JCL TEMPLATE DATASET.
//*
//* SUPPLY THE VOLSER, UNIT, DSN AND SPACE PARAMETERS.
//*
//* THIS JCL IS INTENDED AS AN EXAMPLE. PLEASE CONSULT THE
//* INSTALLATION GUIDE BEFORE RUNNING.
//*
//* THE FOLLOWING SYMBOLICS ARE TRANSLATED AT SUBMIT TIME:
//* %A IS REPLACED BY THE VTAM APPLID OF THE CICS REGION.
//* %D IS REPLACED BY THE DSN ON THE FCT FOR THE FILE XVTCEXTR.
//* %J IS REPLACED BY THE CICS JOBNAME.
//* %S IS REPLACED BY THE SYSID OF THE CICS REGION.
//*
//* = = = = = = = = = = = = = = = CAUTION = = = = = = = = = = = = = = =
//* THE SYMBOLICS MAY BE USED ANYWHERE IN THE TEMPLATE JCL. IF USING A
//* SYMBOLIC FOR THE JOBNAME, BE CAREFUL TO AVOID CREATING A DUPLICATE
//* OF THE JOBNAME/STCNAME OF THE CICS REGION.
//* = = = = = = = = = = = = = = = CAUTION = = = = = = = = = = = = = = =
//*
//AMS EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE (XV.XVTCEXTJ) PURGE /* CHECK DSN */
DEFINE CLUSTER -
(NAME(XV.XVTCEXTJ) /* CHECK DSN */ -
VOLUMES(??????) /* <== CHECK VOLUME */ -
TRACKS(1 1) /* <== CHECK SPACE */ -
RECORDSIZE(80 80) /* DO NOT MODIFY */ -
NUMBERED /* DO NOT MODIFY */ -
SHAREOPTIONS(1 3)) /* DO NOT MODIFY */
/* LOAD JCL DATA */
IF LASTCC EQ 0 -
THEN REPRO -
INFILE(SYSJIN) -
OUTDATASET(XV.XVTCEXTJ) /* CHECK DSN */
/*
//SYSJIN DD DATA,DLM=##
//EXTRACT JOB (),'XPEDITER CODE COVER', <=== YOUR JOB CARD HERE
// CLASS=A,MSGCLASS=X
//%J EXEC PGM=XVTTAHRD
//STEPLIB DD DISP=SHR,DSN=CPWR.MLXVnnn.SLXVLOAD <== CHECK DSN
// DD DISP=SHR,DSN=CPWR.LCXnnn.SLCXLOAD <== CHECK DSN
//XEXTRACT DD DISP=SHR,DSN=%D
//XCOVER DD DISP=SHR,DSN=YOUR.REPOSITORY <== CHECK DSN
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//
##
//
Configuring Xpediter/Code Coverage
2-17
Step 4. Create the XVTCSPEC Dataset for CICS
If you intend to archive any of your test specifications from the Test Definition screen, these will be saved in the XVTCSPEC file. XVTCSPEC is an optional file, but must be defined if specification archiving is to be done.
1. Find the JCL to create the Specifications Archive dataset.
The JCL provided in Xpediter/CICS SMXDSAMP member JCLCDEFS as shown in
Figure 3-5.
2. Edit the JCL according to the included comments shown in Figure 3-5, inserting a valid job card and specifying the dataset name, volume, and space values chosen for your site.
3. When the necessary edits have been performed, submit the JCL to create the
XVTCSPEC dataset.
IMPORTANT
A single XVTCSPEC dataset can be shared by multiple Xpediter/CICS regions running on the same MVS image, but not across MVS images.
Figure 2-7. JCL to Create the XVTCSPEC Dataset (JCLDEFS)
//* YOUR JOB CARD HERE
//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//*
//* CODE COVERAGE INSTALL STEP: JCLCDEFS
//*
//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//* JCLCDEFS - IDCAMS JCL TO ALLOCATE THE XPEDITER/CICS CODE COVERAGE
//* - SPECIFICATIONS FILE.
//*
//* THE FOLLOWING JCL WILL ALLOCATE THE XPEDITER/CICS CODE
//* COVERAGE SPECIFICATIONS FILE. SUPPLY THE VOLSER, UNIT,
//* DSN, AND SPACE PARAMETERS. THIS JCL IS INTENDED AS AN EXAMPLE.
//* PLEASE CONSULT THE INSTALLATION GUIDE BEFORE RUNNING.
//*
//AMS EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE (XV.XVTCSPEC) PURGE /* CHECK DSN */
DEFINE CLUSTER -
(NAME(XV.XVTCSPEC) /* CHECK DSN */ -
VOLUMES(??????) /* <== CHECK VOLUME */ -
TRACKS(30 10) /* <== CHECK SPACE */ -
RECORDSIZE(928 928) /* DO NOT MODIFY */ -
SHAREOPTIONS(2 3) /* DO NOT MODIFY */ -
UNIQUE -
KEYS(38 0)) /* DO NOT MODIFY */ -
DATA( NAME(XV.XVTCSPEC.DATA)) /* SUPPLY NAME */ -
INDEX(NAME(XV.XVTCSPEC.INDEX)) /* SUPPLY NAME */
/*
//
Step 5. Update the CICS Resource Definitions
1. Update your site’s Xpediter/CICS resource definitions.
These definitions are supplied in the SMXDSAMP dataset created as a part of the
Xpediter/CICS installation. The members begin with the CSD* prefix. If you change any of the Code Coverage transaction IDs before submitting the JCL, they must also be changed in either the Xpediter/Code Coverage global table or the Xpediter/Code
2-18
Xpediter/Code Coverage Installation and Configuration Guide
Coverage global table overrides dataset. Refer to “Global Parameters Table” on page
2. Modify your Xpediter/CICS shutdown PLT.
Note: You may skip the next sub-step if DBUGPLTS was already added while configuring
other Xpediter/CICS facilities. If you skip this sub-step, go to sub-step 4 on page
2-18 to modify your CICS SIT overrides.
3. Add program DBUGPLTS to your Xpediter/CICS shutdown PLT so that Code
Coverage can extract any collected data during CICS shutdown or region cancel.
a. To add this program to your CICS shutdown PLT, look for the following line:
DFHPLT TYPE=ENTRY,PROGRAM=DFHDELIM b. Immediately before the line, add the following entry:
DFHPLT TYPE=ENTRY,PROGRAM=DBUGPLTS
Note: You may skip the next sub-step if you plan to change the value of the
Xpediter/Code Coverage global parameter SUBMIT to NO in ”Step 7. Review
Global Parameters Table”. If you skip this sub-step, go to ”Step 6. Update the
CICS Startup JCL” immediately below.
4. Modify your Xpediter/CICS SIT overrides.
Be sure to set SPOOL=YES in your CICS system initialization table (SIT) or SIT overrides. This will enable Code Coverage to automatically submit JCL to reformat the contents of the extract dataset and transfer it to the Code Coverage Results
Repository.
Step 6. Update the CICS Startup JCL
Change your site’s Xpediter/CICS startup JCL as follows:
1. Add the load library containing Code Coverage to the DFHRPL concatenation.
CPWR.MLXV170.SLXVLOAD is the default name for this loadlib.
2. Add a DD statement for the Code Coverage Program Inventory dataset XVTPGINV.
This file is not to be defined with RDO.
Note: If this DD does not point to a valid program inventory dataset, you will
receive a message stating that Code Coverage is not active. If Code Coverage is not active, refer to the joblog regarding messages related to this dataset.
3. An RDO entry for file XVTCEXTR was created in “Step 5. Update the CICS Resource
Definitions” on page 2-17. If that entry did not include a dataset name, add a DD
statement to the Xpediter/CICS startup JCL for XVTCEXTR.
4. An RDO entry for file XVTCEXTJ was also created in “Step 5. Update the CICS
Resource Definitions” on page 2-17. If that entry did not include a dataset name, add
a DD statement to the Xpediter/CICS startup JCL for XVTCEXTJ.
5. An RDO entry for file XVTCSPEC was also created in “Step 5. Update the CICS
Resource Definitions” on page 2-17. If that entry did not include a dataset name, add
a DD statement to the Xpediter/CICS startup JCL for XVTCSPEC. (This step is optional if you do not wish to archive test specification entries.)
6. If you are a current Xpediter/Code Coverage customer utilizing the XVGBLINP DD to specify global table overrides, be aware that you will have to convert your input to use the Compuware Mainframe Services Controller (CMSC) PARMLIB. You must move your current override members from the datasets in the XVGBLINP DD into new members with the names of XVGBxxxx in the CMSC PARMLIB. You can remove the XVGBLINP DD, which will no longer be needed, from your CICS JCL at your
Configuring Xpediter/Code Coverage
2-19
convenience. Refer to the chapter entitled “Implementing the CMSC PARMLIB” in
the Xpediter/CICS Installation and Configuration Guide and “Overriding Global
Parameters” on page 3-5 of this manual for additional instructions.
You will now use the CMSC PARMLIB Index Member, XD$$00, to specify the members and order of concatenation for each CICS region in which you have
Xpediter/Code Coverage installed. This member will be read during product initialization and provides the order of members to be read during product initialization or when the XVSI transaction is used to refresh parameter changes.
Step 7. Review Global Parameters Table
Compuware recommends that your site install and test Code Coverage with the shipped
options. You may, however, want to review the global parameters listed in Chapter 3,
“Global Parameters Table” and make any changes required for your site.
Step 8. Create the CICS Code Coverage Global Table Parameter
Overrides (Optional)
Prior to Xpediter/Code Coverage release 17.02, a sequential dataset, XVGBLINP, was used to provide global table parameter overrides. Starting with release 17.02, global table parameter overrides are read from the Compuware Mainframe Services Controller
(CMSC) PARMLIB. If you are currently using a sequential dataset for these overrides, refer to the chapter entitled “Implementing the CMSC PARMLIB” in the Xpediter/CICS
Installation and Configuration Guide and “Overriding Global Parameters” on page 3-5 of this
manual for the changes that you must make.
Xpediter/Code Coverage provides a facility for overriding global parameters with values read from a sequential dataset at product initialization. A standalone transaction, XVSI, can also be used to override global parameters from the same dataset while Code
Coverage is running.
Compuware strongly recommends using this feature due to the greatly enhanced ease of use it provides. For detailed information, refer to the chapter entitled “Implementing the
CMSC PARMLIB” in the Xpediter/CICS Installation and Configuration Guide and “Overriding
Global Parameters” on page 3-5 of this manual.
If you have been using a global parameter overrides dataset, review the parameters for possible changes that may be required for your site. You will have to convert your input to use the CMSC PARMLIB method instead of your existing dataset XVGBLINP. For detailed information, see the chapter entitled “Implementing the CMSC PARMLIB” in the
Verifying the Code Coverage Installation
To verify the installation of Code Coverage you must complete those steps detailed in
Chapter 4, “Verifying the Code Coverage Installation” after all the steps in the current
chapter are completed.
Installing the Code Coverage PC Component
(Optional)
If your site wants to take advantage of the extensive filtering, graphical display, and other output configuring and viewing capabilities provided by the PC component of
Code Coverage packaged with the DevEnterprise product, complete the steps in Chapter
5, “Installing the Code Coverage PC Component”. Otherwise, your mainframe-only
2-20
Xpediter/Code Coverage Installation and Configuration Guide
installation and configuration of Xpediter/Code Coverage is complete.
Preuzimanje
Oglas