Using Results Repository Utilities. Compuware Code Coverage
Reklama
Reklama
5-1
Chapter 5.
Using Results Repository Utilities
This chapter describes how to use each of the Xpediter/Code Coverage utilities. These utilities allow you to create and delete entire Code Coverage results repositories or individual repository members, import or export repository members, and merge records from two repository datasets.
The Results repository utilities can be run as batch jobs or can be used interactively by accessing the screens described in this chapter. Sample JCL is provided in the SLXVSAMP
Table 5-1.
JCL for Results Repository Utilities
Member Name Utility Function
JCLCRERP
JCLDELRP
Create a repository dataset
Delete a repository dataset
JCLLST
JCLDEL
JCLEXP
JCLIMP
JCLMERGE
XVJCLCNV
List repository members
Delete repository members
Export member(s) from repository to sequential dataset
Import sequential dataset member(s) into repository
Merge member(s) from one repository into another
Process an input PDS and create an output PDS containing modified JCL
Note: For information about the member name for the JCL Flag Utility, refer to the chapter entitled “Batch File Utility CWDDSUTL,” in the Compuware Shared Services
User/Reference Guide, MVS Version.
Utilities Menu
The Utilities menu shown in Figure 5-1 provides access to the various Code Coverage
utilities. This menu is displayed by entering option 2 on the Primary Menu (see “Primary
Figure 5-1. Utilities Menu
------------------------ CODE COVERAGE 17.02 - UTILITIES --------------------
OPTION ===>
1 REPOSITORY - Create and/or Delete a Repository
2 LIST/DELETE - List and/or Delete Repository member(s)
3 EXPORT - Export Repository member(s)
4 IMPORT - Import Repository member(s)
5 MERGE - Merge records between two Repository files
6 FLAG - Flag source listings differences
7 CONVERT - Convert JCL
C CICS - CICS Program Inventory Utility
M MAINTENANCE - Print maintenance report
5-2 Xpediter/Code Coverage Mainframe User/Reference Guide
Type 1 in the OPTION field and press Enter to create or delete a Code Coverage Results
Repository dataset. Refer to the “Repository Utility Screen” on page 5-2 for details.
Type 2 in the OPTION field and press Enter to view a list of repository members or delete
selected members. Refer to the “List/Delete Utility Screen” on page 5-4 for details.
Type 3 in the OPTION field and press Enter to export one or more repository members as
described in “Export Utility Screen” on page 5-13.
Type 4 in the OPTION field and press Enter to import repository members. Refer to the
“Import Utility Screen” on page 5-15 for details.
Type 5 in the OPTION field and press Enter to merge one or more repository members
into another repository dataset. Refer to the “Merge Utility Screen” on page 5-16 for
details.
Type 6 in the OPTION field and press Enter to select the flag that will create the batch job
to run the compare utility. Refer to the “Flag Utility Screen” on page 5-18 for details.
Type 7 in the OPTION field and press Enter to convert batch JCL for Code Coverage.
Refer to the “Convert JCL Utility Screen” on page 5-20 for details.
Type C in the OPTION field and press Enter to perform actions on the Program Inventory
file. Refer to the “CICS Program Inventory Maintenance Screen” on page 5-24 for details.
Type M in the OPTION field and press Enter to immediately print a report identifying the release and maintenance applied to your Code Coverage system.
Repository Utility Screen
The Repository Utility screen shown in Figure 5-2 allows you to create and delete the
Xpediter/Code Coverage Results Repository datasets used to accumulate testing coverage data. If in batch mode, a batch job using IDCAMS will be generated to do the actual allocation or deletion of the dataset. This screen is accessed by entering option 1 on the
Code Coverage Utilities menu (Figure 5-1 on page 5-1).
You can also run a batch job to create or delete a Results Repository dataset. Sample JCL is provided in SLXVSAMP members JCLCRERP and JCLDELRP.
Figure 5-2. Repository Utility Screen
---------------- CODE COVERAGE 17.02 - REPOSITORY UTILITY ------------------
COMMAND ===>
Commands: C (Create file) D (Delete file)
Repository File ===> ’ACMJET0.V17.REPOSIT’
Management Class ===> (optional)
Storage Class ===> (optional)
Volume ===> (optional)
Unit ===> (optional)
Space Units ===> CYL (CYL/MB)
Primary Quantity ===> 10
Edit JCL ===> NO_ (Yes/No)
Press ENTER to process or enter END command to terminate
Using Results Repository Utilities 5-3
Commands
The primary commands shown in Figure 5-2 are defined as follows:
C Creates a repository dataset.
D Deletes a repository dataset.
Input Fields
Repository File
Specifies the name of the dataset to be created or deleted. The name can be qualified with quotes or unqualified. An unqualified name appears with your user ID as a prefix. Ensure your site’s Code Coverage users have write access to the specified dataset.
Management Class
Specifies the desired SMS management class. Only use this optional field or the
Storage Class field when creating an SMS managed dataset. When you use this field, leave the Volume and Unit fields blank. The appropriate values for those fields will be assigned by the system.
Storage Class
Specifies the desired SMS storage class. Only use this optional field or the
Management Class field only when creating an SMS managed dataset. When you use this field, leave the Volume and Unit fields blank. The appropriate values will be assigned by the system.
Volume
Unit
Specifies the volume serial number on which to allocate the repository dataset. You can also specify a generic unit name. Only use this optional field only when creating a non-SMS dataset. If you use the Management Class field or the Storage Class field when creating an SMS managed dataset, then leave this field blank so that the system will assign the appropriate value.
Specifies the generic unit name on which to allocate the repository dataset. If you specify a unit name, a sequential dataset will be dynamically allocated to a volume on that unit. This dataset will then be deleted and replaced by a VSAM dataset when the IDCAMS batch job is run. Only use this optional field only when creating a non-
SMS dataset. If you use the Management Class field or the Storage Class field when creating an SMS managed dataset, then leave this field blank so that the system will assign the appropriate value.
Space Units
Specifies the primary space units for the dataset. A value must be entered when any repository dataset is created or deleted. Valid values are cylinders (CYL) and megabytes (MB). This field is required.
Primary Quantity
Specifies the number of primary space units to be allocated for the repository dataset.
This field is required. A valid space unit value must be entered when any repository dataset is created. The default size is 10 cylinders, which provides enough space for one or more systems totalling approximately 1000 programs of 800 executable statements each. For estimating purposes, the size of each record is
(8 * number of executable verbs) + 160.
5-4 Xpediter/Code Coverage Mainframe User/Reference Guide
Edit JCL
Allows you to choose whether or not to edit the JCL. When you are in batch mode, specify Yes to edit the JCL of the IDCAMS allocation or deletion job prior to submittal. The default value is No. When you are in an online mode, No is automatically displayed in this field as a default and you are prohibited from entering a value.
List/Delete Utility Screen
The List/Delete Utility screen shown in Figure 5-3 and Figure 5-4 on page 5-5 allows you
to list individual members of the Xpediter/Code Coverage Results Repository dataset used to accumulate testing coverage data. It also enables you to delete selected members that are no longer needed. This screen is accessed by entering option 2 on the Code Coverage
Utilities menu (Figure 5-1 on page 5-1).
You can also run a batch job to list or delete Results Repository dataset members. Sample
JCL is provided in SLXVSAMP members JCLLST and JCLDEL.
Figure 5-3. List/Delete Utility Screen #1
---------------- CODE COVERAGE 17.02 - LIST/DELETE UTILITY -------------------
COMMAND ===>
Commands: D (delete), L or blank (list)
Repository File ===>
Type ===> (C = Code Coverage, F = System Flow)
System ===>
Test ID ===>
User ID ===>
Module ===>
Compile Date ===> ____ __ __ (YYYY or YY MM DD)
Compile Time ===> __ __ __ (HH MM SS)
More: +
Select by Date:
Last Updated Date ===> ____ __ __ (YYYY or YY MM DD)
Comparative Operator ===> (LT, LE, EQ, GT, or GE)
Code Coverage only: Program Name ===>
Debug ===> (Y/N or blank or * for both)
Press ENTER to process or enter END command to terminate
Using Results Repository Utilities 5-5
Figure 5-4. List/Delete Utility Screen #2
---------------- CODE COVERAGE 17.02 - LIST/DELETE UTILITY ------- End of data
COMMAND ===>
Commands: D (delete), L or blank (list)
Repository File ===>
Type ===> (C = Code Coverage, F = System Flow)
System ===>
Test ID ===>
User ID ===>
Module ===>
Compile Date ===> ____ __ __ (YYYY or YY MM DD)
Compile Time ===> __ __ __ (HH MM SS)
More: -
Debug ===> (Y/N or blank or * for both)
System Flow only: Object Type ===> (P=Pgm, X=Tran, blank or * = both)
Object Name ===>
CICS SYSID ===>
Call Type ===> (D = Dynamic, L = Link, X = XCTL
S = Static link, blank or * = all)
Press ENTER to process or enter END command to terminate
Commands
The primary commands shown in Figure 5-3 and Figure 5-4 are defined as follows:
D Deletes specified repository members.
L Lists the items in a repository. Leaving the COMMAND field blank will also list the items in a repository.
Input Fields
All input fields are described below. The Repository File field, Type field, and Compile
Date and Compile Time fields do not accept wildcards.
Repository File
Specifies the name of the Results Repository dataset for which the systems are to be listed or deleted. If an L is entered in the COMMAND field and the System, Test ID,
Type
Specifies the type of record to be processed. Select C for Code Coverage records or F for System Flow records. This field does not accept wildcard characters.
System
Specifies the system to be accessed. If L is entered in the COMMAND field, a system name is specified in the System field, and the other fields are left blank, the Test ID
Selection screen shown in Figure 5-6 on page 5-9 will be displayed. The System field
is restricted to 15 characters or less in length and can be wildcarded.
Test ID
Specifies the test ID to be accessed. This field can be wildcarded. If wildcarded, all entries that match the criteria will be displayed on the Test ID Selection screen
shown in Figure 5-6 on page 5-9.
User ID
Specifies the name of a valid TSO or IMS user. The field is limited to 8 characters or less in length and can be wildcarded.
5-6 Xpediter/Code Coverage Mainframe User/Reference Guide
Module
Specifies the module to be accessed. If L is entered in the COMMAND field and this
field specified, the Program Selection screen shown in Figure 5-7 on page 5-10 will be
displayed. The Module field is restricted to 8 characters or less in length and can be wildcarded.
Compile Date
Specifies a compile date to narrow the accessing of the specified program to those with a matching compile date.
Compile Time
Specifies a compile time to further narrow the accessing of the specified program to those with a matching compile time.
Select by Date Fields
Last Updated Date
Specifies the last date on which the selected record was added or updated.
Comparative Operator
Specifies the comparison operator to use when choosing dates by which to select records. Available operators are:
LT Less than. Choose records updated before, but not on, the date specified.
LE Less than or equal to. Choose records updated on or before the date specified.
EQ Equal to. Choose records updated on the exact date specified.
GT Greater than. Choose records updated after, but not on, the date specified.
GE Greater than or equal to. Choose records updated on or after the date specified.
Code Coverage Only Fields
Program Name
Specifies the program name (for Code Coverage only) to be accessed. If an L is entered in the COMMAND field, a program name is specified in the Program field,
and the other fields are left blank, the Program Selection screen (Figure 5-7 on page
5-10) will be displayed with a list of systems that contain one or more programs
matching the specified name. This field is restricted to 8 characters or less in length.
Debug
Allows you to choose whether to include or exclude Code Coverage members containing data captured while using debugging commands. Specify Y (Yes) to include Code Coverage members or N (No) to exclude those members that include data captured while using debugging commands. The contents of these members may not necessarily reflect normal program execution.
System Flow Only Fields
Object Type
Specifies the calling object (for System Flow only) as a program or a transaction.
Select P for Program, X for Transaction. A blank or asterisk (*) specifies both. This field is optional.
Object Name
Specifies the object name (for System Flow only) of the calling program or transaction. This field is limited to 8 characters or less in length and is optional.
Using Results Repository Utilities 5-7
CICS SYSID
Specifies the ID of the CICS system that executed the System Flow. This field is limited to 4 characters or less in length and is optional.
Call Type
Specifies the type of call (for System Flow only) made by the object (parent). Select D for Dynamic, L for Link, X for XCTL, S for Static Link.A blank or asterisk (*) specifies all choices. This single-character field is optional.
System Selection Screen
The System Selection screen shown in Figure 5-5 provides a list of systems in a
previously-specified Results Repository dataset for which Code Coverage data exists.
From this list of systems, you can then list or delete the members associated with them.
This screen is accessed from the List/Delete Utility screen (Figure 5-3 on page 5-4) when
no system name or a generic system name is specified in that screen’s System field.
Figure 5-5. System Selection Screen
-------- CODE COVERAGE 17.02 - LIST/DELETE UTILITY - SYSTEM SELECTION ---------
COMMAND ===> SCROLL ===> PAGE
Line command: D (Delete) Primary command: S (Select all)
S (Select) DEL (Delete all)
X (Exclude from list) EXC (Exclude all viewed)
Repository: ’ACMJET0.V17.REPOSIT’
Type: Code Coverage Program: TRIRPTA
Test ID: All Test IDs Compile Date: Any date
User ID: All User IDs Compile Time: Any time
Module: TRIMAINA Debug: Both Yes and No
Cmd ----System----- 8 selected system(s)
_ CODE COVERAGE
_ ACCOUNTING
_ INVENTORY viewed
_ LEGAL
_ PAYROLL
_ RA432 I/O ERROR
_ PAYABLES
_ RECEIVABLES
*** End of list ***
Line Commands
The line commands shown in Figure 5-5 are defined as follows:
D Deletes the member(s) associated with a particular system.
S
Displays the “Test ID Selection Screen” (Figure 5-6 on page 5-9) with a list of the modules in the
selected system.
X Removes (excludes) the system from the displayed list.
Primary Commands
The primary commands shown in Figure 5-5 are defined as follows:
S
Selects the step that transfers the user to the Test ID Selection screen and displays a list of all test
IDs that are associated with all systems listed on the System Selection screen.
DEL Selects the step that deletes all modules within all systems listed on the System Selection screen.
5-8 Xpediter/Code Coverage Mainframe User/Reference Guide
EXC
Selects the step that removes (excludes) all systems that have been marked viewed from the list displayed on the System Selection screen.
Output Fields
Repository
The Results Repository dataset containing the listed systems.
Type
The category (System Flow or Code Coverage) of record to be processed.
Test ID
The names of one or more valid test IDs.
User ID
The names of one or more valid TSO, IMS, or CICS users.
Module
The module(s) within the listed systems that were specified on the List/Delete Utility
screen (Figure 5-3 on page 5-4).
Program
The name of the program to be accessed. This field is restricted to 8 characters or less in length.
Compile Date
The compile date of the programs within the listed systems that were specified on the List/Delete Utility screen.
Compile Time
The compile time of the programs within the listed systems that were specified on the List/Delete Utility screen.
Debug
Indicates whether data gathered while using debugging commands is included.
System
The system or systems within the listed Results Repository dataset. The output is limited to ’YES’, ’NO’, or ’Both Yes and No’.
Input Fields
Cmd
Specifies one of three available line commands next to the system you want to affect.
See “Line Commands” on page 5-7 for details of each command that can be entered
in this field.
Test ID Selection Screen
The Test ID Selection screen shown in Figure 5-6 on page 5-9 allows you to display the
detail for a test ID, or exclude test IDs from the list. This screen can be accessed by entering one of the following:
• a system on the List/Delete Utility screen
• a system and generic test ID on the List/Delete Utility screen
Using Results Repository Utilities 5-9
• an S (Select) command (line or primary) in the command field of the System
Selection screen (Figure 5-5 on page 5-7).
Pressing Enter will display the Test ID Selection screen. Access to the Test ID Selection screen is granted because you have chosen not to select a system for deletion while using the System Selection screen.
Figure 5-6. Test ID Selection Screen
-------- CODE COVERAGE 17.02 - LIST/DELETE UTILITY - TEST ID SELECTION --------
COMMAND ===> SCROLL ===> PAGE
Line command: D (Delete) Primary command: S (Select all)
S (Select) DEL (Delete all)
X (Exclude from list) EXC (Exclude all viewed)
Repository: ’ACME.TEST.H01ACM11.REPOSIT’
Type: System Flow
User ID: All User IDs Compile Date: Any date
Module: TRIMAINA Compile Time: Any time
Program: TRIRPTA Debug: Both Yes and No
Cmd ----System----- ----Test-ID---- 5 selected Test ID(s)
_ ACCOUNTING TEST # 4
_ INVENTORY TEST # 2
_ LEGAL LAWYERS
_ PAYROLL ANOTHER TEST
_ PAYROLL YET ANOTHER
************* End of List *************
Line Commands
The line commands shown in Figure 5-6 are defined as follows:
D
Deletes the members associated with a particular test ID contained within the system. If only one test
ID exists within the system, the system is also deleted.
S
Displays either the Program Selection screen (Figure 5-7 on page 5-10) if the type is Code Coverage
or the Object Selection screen (Figure 5-8 on page 5-11) if the type is System Flow.
X Removes the test ID from the displayed list.
Primary Commands
The primary commands shown in Figure 5-6 are defined as follows:
S
Displays either the Program Selection screen (Figure 5-7 on page 5-10) if the type is Code Coverage
or the Object Selection screen (Figure 5-8 on page 5-11) if the type is System Flow.
DEL Selects the step that deletes all modules within all systems listed on the Test ID Selection screen.
EXC
Selects the step that removes (excludes) all test IDs that have been marked viewed from the list displayed on the System Selection screen.
Input Fields
Cmd
Specifies one of three available line commands next to the system you want to affect.
See “Line Commands” for details of each command that can be entered in this field.
5-10 Xpediter/Code Coverage Mainframe User/Reference Guide
Program Selection Screen (Code Coverage Only)
The Program Selection screen shown in Figure 5-7 provides a list of programs in the
previously specified Results Repository dataset, system, and module for which Code
Coverage data exists. You can delete individual programs, if desired, or use the Delete
(DEL) primary command to delete all programs listed on this screen. This screen is accessed by entering the Select (S) command (line or primary) on the command line of
the Test ID Selection screen (Figure 5-5 on page 5-8).
Figure 5-7. Program Selection Screen
------- CODE COVERAGE 17.02 - LIST/DELETE UTILITY - PROGRAM SELECTION --------
COMMAND ===> SCROLL ===> PAGE
Line command: D (Delete) Primary command: DEL (Delete all)
X (Exclude from list)
5 selected object(s)
Repository: ’ACMJET0.CC.RESULTS’
Cmd ----System----- ----Test ID---- -User ID- -Module- -Program- Comp-Date-
--Debug-- Comp-Time
_ ACCOUNTING_____ TEST # 4_______ ACMEVE0_ XVTTACNV PGM#8762 12/15/2008
Y 08:45:32
_ INVENTORY______ TEST # 2_______ ACMEVE1_ XVTTAPRS PGM#101_ 10/10/2009
Y 12:03:15
_ LEGAL__________ LAWYERS TEST___ ACMBOB0_ XVTTAPRS PGM#8762 12/17/2009
Y 06:45:30
_ PAYROLL________ TEST # 5_______ ACMBOB1_ XVTTALPO PRIVATE_ 12/15/2008
Y 18:25:04
_ PAYROLL________ ANOTHER TEST___ ACMJET0_ XVTTALRV PGM#8531 11/24/2009
Y 14:36:54
********************************* End of list ********************************
Line Commands
The line commands shown in Figure 5-7 are defined as follows:
D Deletes the members associated with a particular module.
X Removes the module from the displayed list.
Primary Commands
The primary command shown in Figure 5-7 are defined as follows:
DEL Selects the step that deletes all modules within all systems listed on the Program Selection screen.
Output Fields
Repository
The Results Repository dataset containing the listed modules.
System
The selected system within the listed Results Repository dataset. The system name displayed in this field is limited to 15 characters or less in length.
Test ID
The name of one or more valid test IDs. The test ID displayed in this field is limited to 15 characters or less in length.
Using Results Repository Utilities 5-11
User ID
The name of one or more valid TSO, IMS, or CICS users.
Module
The module or modules within the selected system.
Program
The program(s) within the listed modules.
Debug
Indicates whether data gathered while using debugging commands is included. The optional entries displayed in this field are Y (Yes) or N (No).
Comp Date
The compile date of the program.
Comp Time
The compile time of the program.
Input Field
Cmd
Specifies one of two available line commands next to the program you want to affect.
See “Line Commands” on page 5-10 for details of each command that can be entered
in this field.
Object Selection Screen (System Flow Only)
The Object Selection screen shown in Figure 5-8 provides a list of System Flow objects in
a previously specified Results Repository. From this list you can delete members from the
Repository or exclude members from the list. This screen is accessed by entering one of the following:
• a system and test ID on the List/Delete Utility screen
• an S (Select) command (line or primary) in the command field of the Test ID
Selection screen (Figure 5-6 on page 5-9).
Figure 5-8. Object Selection Screen
------- CODE COVERAGE 17.02 - LIST/DELETE UTILITY - OBJECT SELECTION --------
COMMAND ===> SCROLL ===> PAGE
Line command: D (Delete) Primary command: DEL (Delete all)
X (Exclude from list)
71 selected objects(s)
Repository: ACME.TEST.H01ACM11.REPOSIT'
Cmd ----System----- ----Test ID---- User-ID -Module- -Parent- Parent-type
CICS-SYSID -Depend- Dep.-type
_ SF XDYS ACMJET0 N/A XDYS TRAN
C093 CWDYNSUB PGM
_ SF XDYS ACMJET0 CWCDDYNA CWCDDYNA PGM
C093 CWCDDYNB PGM
_ SF XDYS ACMJET0 CWCDDYNA CWCDDYNA PGM
C093 CWCDDYNC PGM
_ SF XDYS ACMJET0 CWCDDYNA CWCDDYNA PGM
C093 CWCDDYND PGM
_ SF XDYS ACMJET0 CWCDDYNA CWCDDYNA PGM
C093 CWCDDYNE PGM
_ SF XDYS ACMJET0 CWCDDYNA CWCDDYNA PGM
C093 CWCDDYNF PGM
_ SF XDYS ACMJET0 CWDYNSUB CWCDDYNA PGM
C093 CWCDDYNB PGM
5-12 Xpediter/Code Coverage Mainframe User/Reference Guide
Line Commands
The line commands shown in Figure 5-8 on page 5-11 are defined as follows:
D Deletes the individual System Flow record.
X Removes the individual System Flow record from the displayed list.
Primary Commands
DEL
Selects the step that deletes all System Flow records listed on the Object Selection
screen (Figure 5-8 on page 5-11).
Output Fields
Repository
The Results Repository dataset containing the listed objects.
System
The selected system within the listed Results Repository dataset. The system name displayed in this field is limited to 15 characters or less.
Test ID
The selected test ID within the listed Results Repository dataset. The test ID name displayed in this field is limited to 15 characters or less.
User ID
The user ID of the transaction executing when the System Flow record was collected.
Module
The load module name containing the program that was executing when the System
Flow record was collected.
Parent
System Flow records contain two segments, a parent segment and a dependent segment. The parent segment can be thought of as the calling program (or transaction) and the dependent segment can be thought of as the called program.
This field will contain the calling program name for program records (PGM) or the
CICS transaction ID for transaction records (TRAN).
Parent-type
This field will contain TRAN for parent transaction segments or PGM for parent program segments.
CICS-SYSID
The CICS SYSIDNT of the CICS region where the System Flow record was collected.
Depend
System Flow records contain two segments, a parent segment and a dependent segment. The parent segment can be thought of as the calling program (or transaction) and the dependent segment can be thought of as the called program.
This field will contain the called program name.
Dep.-type
This field is the dependent segment type and will only contain PGM.
Using Results Repository Utilities 5-13
Input Field
CMD
Specifies one of two available line commands D or X. See “Line Commands” on page
5-12 for the details of each command that can be entered in this field.
Confirm Delete Screen
The Confirm Delete screen shown in Figure 5-9 is displayed when one or more program
members have been selected for deletion on the System Selection, Test ID Selection, or
Program Selection screen.
Figure 5-9. Confirm Delete Screen
------------------ CODE COVERAGE 17.02 - LIST/DELETE UTILITY ------------------
COMMAND ===>
PLEASE CONFIRM DELETE SELECTION
===============================
Repository File: ’ACMJET0.CC2.REPOSIT’
Type: Code Coverage
System: ACCOUNTING
Test ID: TEST # 4
User ID: ACMJET0
Module: XVTTACNV
Program Name: PGM#8762
Compile Date: Dec 15, 2009
Compile Time: 08:45:32
Debug: YES
Last Update Date: On or Before 01/01/2014
Press ENTER to confirm or enter END command to cancel delete
Press Enter to delete the member associated with the listed program. Use the END command to cancel the delete process.
Export Utility Screen
The Export Utility screen shown in Figure 5-10 on page 5-14 allows you to export one or
more Code Coverage Results Repository members to a sequential dataset. That dataset can then be imported into another Repository. This screen is accessed by entering option
3 on the Code Coverage Utilities menu (Figure 5-1 on page 5-1).
You can also run a batch job to export Results Repository dataset members. Sample JCL is provided in SLXVSAMP member JCLEXP.
5-14 Xpediter/Code Coverage Mainframe User/Reference Guide
Figure 5-10. Export Utility Screen
------------------- CODE COVERAGE 17.02 - EXPORT UTILITY ----------------------
OPTION ===>
Repository File ===>
Type ===> C (C = Code Coverage, F = System Flow)
System ===> (Optional)
Test ID ===> (Optional)
User ID ===> (Optional)
Module ===> (Optional)
Program ===> (Optional)
Compile Date ===> ____ __ __ (Optional YYYY MM DD)
Compile Time ===> __ __ __ (Optional HH MM SS)
Debug (Y/N) ===> (Optional)
Export File ===>
New System Name ===> (Change all System names)
New Test ID ===> (Change all Test ID names)
New User ID ===> (Change all User ID names)
Press ENTER to process or enter END command to terminate
Press Enter to export the member specified. Enter the END command to cancel the export process.
Input Fields
The input fields are described below. All fields except the Repository File, Type, Export
File, New System Name, New Test ID, and New User ID fields are subject to wildcard rules.
The excepted fields cannot accept wildcard characters.
Repository File
Specifies the repository dataset from which to export. The dataset previously
specified in the first position on the Repository screen (see Figure 2-3 on page 2-3) is
displayed as the default, but can be overtyped with any desired dataset name. This field cannot accept wildcard characters.
Type
Specifies the type of record to be exported. Select C for Code Coverage records or F for System Flow records. This field cannot accept wildcard characters.
System
Specifies the system to be accessed. This field is restricted to 15 characters or less in length.
Test ID
Specifies a valid test ID. This field is restricted to 15 characters or less in length.
User ID
Specifies the name of a valid TSO, IMS, or CICS user. The field is limited to 8 characters or less in length.
Module
Specifies the module to be accessed. The Module field is restricted to 8 characters or less in length.
Program
The name of the program to be accessed. This field is restricted to 8 characters or less in length.
Using Results Repository Utilities 5-15
Compile Date
Specifies a compile date to narrow the accessing of the specified program to those with a matching compile date.
Compile Time
Specifies a compile time to further narrow the accessing of the specified program to those with a matching compile time.
Debug
Optionally specifies Y (Yes) to include repository members that contain data captured while using debugging commands. The default is N (No). This field does not apply to System Flow.
Export file
If exporting to an existing sequential dataset, specifies the dataset name. This field cannot accept wildcard characters.
New System name
Optionally specifies a system name to replace the various system names of all the members selected for export. This field cannot accept wildcard characters.
New Test ID
Optionally specifies the new test ID in the named system of the records to be exported. This field cannot accept wildcard characters.
New User ID
Optionally specifies the new User ID contained in the named system to be exported.
This field cannot accept wildcard characters.
Import Utility Screen
The Import Utility screen shown in Figure 5-11 allows you to import into your Code
Coverage Results Repository a previously exported repository member. This screen is
accessed by entering option 4 on the Code Coverage Utilities menu (Figure 5-1 on page
You can also run a batch job to import Results Repository dataset members. Sample JCL is provided in SLXVSAMP member JCLIMP.
Figure 5-11. Import Utility Screen
------------------- CODE COVERAGE 17.02 - IMPORT UTILITY -------------------
OPTION ===>
Repository file ===> 'ACMJET0.SAMPLE.REPOSIT'
Import file ===>
Press Enter to import the member specified. Enter the END command to cancel the import process.
Input Fields
Repository file
Specify the repository dataset to import into. The dataset previously specified in the
first position on the Repository screen (refer to Figure 2-3 on page 2-3) is displayed as
5-16 Xpediter/Code Coverage Mainframe User/Reference Guide the default, but can be overtyped with any desired dataset name. Specify the target repository for import.
Import file
Specify the sequential dataset to import into the designated repository.
Merge Utility Screen
The Merge Utility screen shown in Figure 5-12 allows you to copy one or more members
of an Xpediter/Code Coverage Results Repository dataset into another repository. It also enables you to delete members that have been merged if they are no longer needed. This
You can also run a batch job to merge members from one Results Repository dataset into another. Sample JCL is provided in SLXVSAMP member JCLMERGE.
Note: Unless otherwise specified, all fields on this screen accept wildcards.
Figure 5-12. Merge Utility Screen
-------------------- CODE COVERAGE 17.02 - MERGE UTILITY ------------------
OPTION ===>
From:
Repository file ===>
Type ===> C (C = Code Coverage, F = System Flow)
System ===> (Optional)
Test ID ===> (Optional)
User ID ===> (Optional)
Module ===> (Optional)
Program ===> (Optional)
Compile Date ===> ____ __ __ (Optional YYYY MM DD)
Compile Time ===> __ __ __ (Optional HH MM SS)
Debug (Y/N) ===> (Optional)
To:
Repository file ===>
New System name ===> (Change all system names)
New Test ID ===> (Change all Test ID names)
New User ID ===> (Change all User ID names)
Delete From records after merge ===> N (Y/N)
Press ENTER to process or enter END command to terminate
Press Enter to import the member(s) specified. Use the END command to cancel the merge process.
Input Fields
From Area
These fields allow you to specify the repository member(s) to be merged.
Repository file
Specifies the repository dataset from which to merge members. Any previous value entered is displayed as the default, but can be overtyped with any desired dataset name. This field cannot accept wildcard characters.
Type
Specifies the type of record to be merged. Select C for Code Coverage records or F for
System Flow records. This field cannot accept wildcard characters.
To Area
Using Results Repository Utilities 5-17
System
Specifies the system to be accessed. This field is restricted to 15 characters or less and cannot be left blank. If left blank, the message ENTRY REQUIRED is displayed.
Test ID
Specifies a valid test ID. This field is required and restricted to 15 characters or less in length.
User ID
Specifies the name of a valid TSO, IMS, or CICS user. The field is limited to 8 characters or less in length. For unattended batch processing, this field will contain
XPTSO.
Module
Specifies the module to be accessed. The Module field is restricted to 8 characters or less in length.
Program
The name of the program to be accessed. This field is restricted to 8 characters or less in length.
Compile Date
Specifies a compile date to narrow the accessing of the specified program to those with a matching compile date.
Compile Time
Specifies a compile time to further narrow the accessing of the specified program to those with a matching compile time.
Debug
Optionally specifies whether or not to include repository members that contain data captured while using debugging commands. Select Y (Yes) to include repository members. The default is N (No). This field does not apply to System Flow.
These fields allow you to specify the repository dataset into which the selected member(s) will be merged and offers you the option to change various characteristics of the newly merged members.
Repository file
Specifies the repository into which the selected members are to be merged. The dataset previously specified in the first position on the Repository screen (refer to
Figure 2-3 on page 2-3) is displayed as the default, but can be overtyped with any
desired dataset name. No wildcards can be used in this field.
New System name
Optionally specifies a system name to replace the various system names of all the members selected for merging. System names are limited to 15 characters or less in length. No wildcards can be used in this field.
New Test ID
Optionally specifies the new test ID in the named system of the records to be merged.
No wildcards can be used in this field.
New User ID
Optionally specifies the new User ID contained in the named system to be merged.
No wildcards can be used in this field.
5-18 Xpediter/Code Coverage Mainframe User/Reference Guide
Other Field
This field allows you to automatically delete merged members.
Delete From records after merge
Specifies whether or not the original repository members should be deleted after they have been merged. Select Y to delete the original repository members after they have been merged. The default is N (No).
Merge Utility Delete Confirmation Screen
The Merge Utility delete confirmation screen shown in Figure 5-13 appears when users
specify Y (Yes) in the Delete From records after merge field on the Merge Utility screen
Figure 5-13. Merge Utility Screen
-------------------- CODE COVERAGE 17.02 - MERGE UTILITY ------------------
COMMAND ===>
PLEASE CONFIRM DELETE SELECTION
===============================
Repository File: ‘ACMJET0.C22.REPOSITA’
Type: Code Coverage
System: All systems
Test ID: WHOZ YER TEST
User ID: All User IDs
Module: All modules
Program Name: All programs
Compile Date: Any date
Compile Time: Any time
Debug: Both Yes and No
Press ENTER to process or enter END command to terminate
Press Enter to allow the action to be taken. Use the END command to cancel the delete process.
Flag Utility Screen
The Flag Utility screen displayed in Figure 5-14 on page 5-19 allows you to compare two
versions of a source program independent of the compiler used. You can also compare baseline and current source listing members for the creation of the flagged source listing members. This screen is accessed by entering option 6 on the Code Coverage Utilities
menu (Figure 5-1 on page 5-1).
When the Flag Utility is used for comparison purposes, it creates a new source listing member whose modified lines are tagged with an identifier. These members can be in separate source listings or in the same source listing file. An error message will be issued if a member is missing for any reason.
You can use the Flag Utility screen to provide the necessary input to create the control cards for the Flag Utility by accessing multiple Flag Utility screens and completing the required fields. You will be able to select multiple baseline members by completing a separate Flag Utility screen for each pair of baseline and current programs.
Using Results Repository Utilities 5-19
Figure 5-14. Flag Utility Screen
-------------------- CODE COVERAGE 17.02 - FLAG UTILITY --------------
COMMAND ===>
Specify parameters:
Base DDIO dataset name ===>
Base listing number ===> (Required if program name blank)
Current DDIO dataset name ===>
Current listing number ===> (Required if program name blank)
Program name ===> (* = all)
Flagged DDIO dataset name ===>
User Identifier ===>
User Identifier start col ===> 73 (73 - 80)
Continue on error ===> YES (Yes/No)
Execution ===> RUN (Run/Simulate)
Execution mode ===> BATCH (Foreground/Batch)
Edit JCL ===> NO (Yes/No)
Press ENTER to process or enter END command to terminate
Input Fields
Base DDIO dataset name
Specifies the ddname of the source listing file that contains the baseline member(s).
If the current source listing file contains both the baseline and current members, this
DD statement is not required.
Base listing number
Specifies the listing number of the baseline member(s). This field can be left blank if the program name is supplied. If the program name is not supplied then this field is requited.
Current DDIO dataset name
Specifies the ddname of the source listing file that contains the current member(s).
Current listing number
Specifies the listing number of the current source listing member. This member is compared to the member specified in the Base listing number field. The flagged results are written to the dataset specified in the Flagged DDIO dataset name field.
This field can be left blank if the program name is supplied. If the program name is not supplied then this field is required.
Program name
Specifies the program name of the source listing member. Wildcard characters can be entered. This field is limited to program names whose length is 8 characters or less. If a program name is specified instead of base listing number and current listing number, the members most recently written to both source listing files with the specified program name are compared.
Flagged DDIO dataset name
Specifies the ddname of the source listing file for the tagged member. If the current source listing file is to be used for the tagged member, you should not specify this dataset name.
User Identifier
Specifies the user-defined identifier and its location. The first parameter is the ID
(User ID name) and the second parameter is the starting column position (limited within columns 73-80). Both values must be enclosed in parentheses and separated
5-20 Xpediter/Code Coverage Mainframe User/Reference Guide by a comma. The length of this field is limited to 8 characters. Example:
ID=(TOM,73).
User Identifier start col
Specifies the beginning and ending columns used for the source comparison. Both values must be separated by a comma. The length of this field is limited to 5 characters.
Continue on error
Specifies whether the FLAG command is to continue if recoverable errors are detected during execution. Select Y for YES or N for NO.
Execution
Specifies the execution of the FLAG command. Select R for RUN or S for SIMULATE.
When you enter RUN, the system creates a flagged source listing member and produces a detailed report. Choosing SIMULATE will produce a detail report without creating a new source listing member.
Execution mode
This field displays the words Foreground or Batch depending on your selection.
Edit JCL
Specifies whether you desire to edit the prepared JCL before submitting the job for execution. Select Y for YES or N for NO.
Convert JCL Utility Screen
The Convert JCL Utility screen in Figure 5-15 on page 5-21 allows you to process an input
partitioned dataset (PDS) and then create an output PDS containing the modified and/or expanded JCL. This screen is accessed by entering option 7 on the Code Coverage
Utilities menu (Figure 5-1 on page 5-1).
This utility takes normal application JCL and converts it to run Xpediter/TSO in unattended batch mode for capturing Code Coverage statistics. Optionally, Test Data
Optimization (TDO) statistics can be collected. The utility then converts selected members or, conversely, an entire input library to the new format, storing the converted
JCL in the output PDS or PDSE dataset.
Type the required data in each field as displayed and press Enter to proceed to the next screen. When all required fields are entered, a batch job is submitted to execute the
Convert JCL Utility. The batch Convert JCL Utility runs under TSO in batch and will require some adjustments during installation. Sample JCL is provided in SLXVSAMP member XVJCLCNV.
Using Results Repository Utilities 5-21
Figure 5-15. Convert JCL Utility Screen
---------------- CODE COVERAGE 17.02 - CONVERT JCL UTILITY ----------------
Command ===>
"From" Dataset ===> 'ACMJET0.SAMPLE.REPOSIT'
Member ===> TEST (Blank for member list, "*" for all members)
"To" Dataset ===> 'ACMEVE1.SAMPLE.REPOSIT'
Remove all comments from converted JCL ===> N (Y=yes, N=no)
Replace like-named members ===> N (Y=yes, N=no)
Edit JOB statement override parameters ===> Y (Y=yes, N=no)
Enter/Edit Xpediter/TSO datasets ===> Y (Y=yes, N=no)
Edit JCL before submitting job ===> Y (Y=yes, N=no)
Repository Dataset ===> 'ACMJET0.SME25.REPOSIT'
System Name ===> INVENTORY
Test ID ===> TEST # 4
TDO Dataset ===>
Held MSGCLASS ===> X
Press ENTER to process or enter END command to terminate
Input Fields
"From" Dataset
Specifies the input JCL library. This library may be either a PDS or PDSE dataset. You may enter the dataset name as unqualified or fully qualified with quotes. This field is limited to 46 characters or less.
Member
Specifies the name of a specific member, an asterisk (*) for all members, or leave the
Member field blank. If blank, a member selection list is displayed when you press
Enter. This field is limited to 7 characters or less.
"To" Dataset
Specifies the output JCL library (either a PDS or a PDSE) that will contain new JCL for
Code Coverage. You must enter an already existing PDS/PDSE library. You may enter the dataset name as unqualified or fully qualified with quotes. This field is limited to
46 characters or less.
Remove all comments from converted JCL
Specifies whether all comments must be removed from the converted JCL. Select Y for Yes or N for No.
Replace like-named members
Specifies whether any duplicate members found in the output library will be overwritten and replaced. Select Y for Yes or N for No.
Edit JOB statement override parameters
Specifies whether a new screen must be displayed that allows you to replace selected portions of the job card in the application JCL. Select Y for Yes or N for No.
Enter/Edit Xpediter/TSO datasets
Specifies whether a new screen must be displayed to specify all datasets associated with Xpediter (including the source listing files). Select Y for Yes or N for No.
Edit JCL before submitting job
Specifies whether you must edit JCL (in ISPF edit mode) that runs the batch Convert
JCL Utility prior to submitting your job. Select Y for Yes or N for No.
5-22 Xpediter/Code Coverage Mainframe User/Reference Guide
Repository Dataset
Specifies the name of the Code Coverage dataset designated for saving results. This field is limited to 46 characters or less.
System Name
Specifies an arbitrary name used to differentiate results by application. This field is limited to 15 characters or less.
Test ID
Specifies an additional name to subdivide results under system name. This field is limited to 15 characters or less.
TDO Dataset
Optionally specifies the name of an existing physical-sequential, fixed-blocked, 80byte record dataset. If specified, TDO information will be collected along with Code
Coverage statistics. If not specified, only Code Coverage statistics will be collected.
(See Chapter 9, “Test Data Optimization” for more information.)
Held MSGCLASS
A message class that is defined at installation as a held class. It is used to hold the output of a TYPRUN=SCAN job submission wherein the output can then be extracted as part of the conversion process.
Convert JCL Utility Job Card Override Parameter Screen
The Convert JCL Utility Job Card Override parameter screen shown in Figure 5-16 creates
a job card and allows you to change the job class of the JCL you are converting. You may change a single job class, or make a wholesale change of all job classes, whatever conversion your environment may require. Multiple JOB CLASS parameters may be entered in the Specify JOB CLASS parameter replacements below field(s). Potentially, 36 different parameters can be entered on this screen.
The Convert JCL Utility Job Card Override parameter screen is accessed from the Convert
JCL Utility screen (refer to Figure 5-15 on page 5-21). This screen is necessary because JCL
conversion is based on the premise that original JCL output will be submitted with modified JOB statement parameters to achieve a pre-defined set of results.
Figure 5-16. Convert JCL Utility Job Card Override Parameter Screen
---------------- CODE COVERAGE 17.02 - CONVERT JCL UTILITY -------------------
Command ===>
Job name ===> ________
Job Account Nbr. ===> __________________________________________________
Job Account info ===> __________________________________________________
Programmer Name ===> __________________________________________________
Priority ===> _
Global Job Class ===> _ (Job class to be used on all Jobs)
OR
Specify JOB CLASS parameter replacements below:
CLASS A -> _ CLASS B -> _ CLASS C -> _ CLASS D -> _ CLASS E -> _ CLASS F -> _
CLASS G -> _ CLASS H -> _ CLASS I -> _ CLASS J -> _ CLASS K -> _ CLASS L -> _
CLASS M -> _ CLASS N -> _ CLASS O -> _ CLASS P -> _ CLASS Q -> _ CLASS R -> _
CLASS S -> _ CLASS T -> _ CLASS U -> _ CLASS V -> _ CLASS W -> _ CLASS X -> _
CLASS Y -> _ CLASS Z -> _ CLASS 0 -> _ CLASS 1 -> _ CLASS 2 -> _ CLASS 3 -> _
CLASS 4 -> _ CLASS 5 -> _ CLASS 6 -> _ CLASS 7 -> _ CLASS 8 -> _ CLASS 9 -> _
Press ENTER to process or enter END command to terminate
Using Results Repository Utilities 5-23
Input Fields
Job name
Specifies a job name that will replace all other job names. This field is limited to 8 characters or less.
Job Account Nbr.
Specifies a job account number that you will use to replace the first field of the job account. This field is limited to 46 characters or less.
Job Account info
Specifies a job account name that you will use to replace the second field of the job account. This field is limited to 46 characters or less.
Programmer Name
Specifies a programmer name that you will use to replace the programmer name field in the job card. This field is limited to 46 characters or less.
Priority
Specifies the JES priority for your job. Enter a number from 1 and 9. This field is limited to one character.
Global Job Class
Specifies the job class that you want used for all jobs. When you enter a value in this field, all individual replacement job classes are ignored.
Specify JOB CLASS parameter replacements below:
Specifies job classes on an individual basis with a new value (not previously specified). This new value will be ignored if a global job class is used.
Convert JCL Utility Datasets Screen
The Xpediter/TSO Convert JCL Utility Datasets screen shown in Figure 5-17 is accessed
from the Convert JCL Utility Job Card Override Parameter screen (refer to Figure 5-16 on page 5-22).
Figure 5-17. Xpediter/TSO Convert JCL Utility Datasets Screen
----------- CODE COVERAGE 17.02 - CONVERT JCL UTILITY - DATASETS ------------
COMMAND ===>
Xpediter/TSO Datasets:
Test Script ===> ________________________________________________________
DDIO Datasets:
(1) ===> 'ACMJET0.SAMPLE.DDIO'_________________________
(2) ===> ______________________________________________
(3) ===> ______________________________________________
(4) ===> ______________________________________________
(5) ===> ______________________________________________
(6) ===> ______________________________________________
(7) ===> ______________________________________________
(8) ===> ______________________________________________
(9) ===> ______________________________________________
Include program DSN ===> ______________________________________________
Exclude program DSN ===> ______________________________________________
Press ENTER to process or enter END command to terminate
5-24 Xpediter/Code Coverage Mainframe User/Reference Guide
Input Fields
Test Script
Specifies the name of the script dataset. This can also be a program dataset with member name in parentheses. This field is limited to 56 characters. Specifying this field causes a DD statement for JCLXINCL to be included in the generated JCL.
DDIO Datasets
Specifies the name of the source datasets. Each one of these fields limited to 46 characters. Specifying this field causes a DD statement for JCLDDIO to be included in the generated JCL.
Include program DSN
Specifies the name of the dataset that contains a list of programs to be included in the JCL convert. This can also be a program dataset with member name in parentheses. This field is limited to 56 characters. Trailing asterisks (*) may only be used as wildcards for included programs at the end of this field, not in the middle.
An inclusion program entry takes precedence over exclusion program entries.
Specifying this field causes a DD statement for JCLINCL to be included in the generated JCL.
Exclude program DSN
Specifies the name of the dataset that contains the list of programs to be excluded from JCL convert. This can also be a program dataset with member name in parentheses. This field is limited to 56 characters. Trailing asterisks (*) may only be used as wildcards for excluded programs at the end of this field, not in the middle.
An inclusion program entry takes precedence over exclusion program entries.
Specifying this field causes a DD statement for JCLXEXCL to be included in the generated JCL.
Include and Exclude Example
Assuming the exclude dataset contains the entries IEF*, IBM*, IEP*, and IKJ*, and the include dataset contains the entries IEFOURS, IKJOUR, and IKJOTHER all selected jobs executing programs IEFOURS, IKJOUR, and IKJOTHER will be converted to be code covered. Any selected jobs executing other programs that begin with IEF, IBM, IEP, and
IKJ will not be converted for Code Coverage.
CICS Program Inventory Maintenance Screen
The CICS Program Inventory Maintenance screen allows users to perform actions on the
Program Inventory file. Access to the CICS Program Inventory Maintenance screen occurs
when users choose option C from the Utilities menu (see the “Utilities Menu” on page
Use of the CICS Program Inventory Maintenance function requires that Program
Inventory datasets, application load libraries, and CICS source listing datasets were specified in the Code Coverage “Defaults” (Code Coverage Option 0) CICS CODE
COVERAGE section.
Using Results Repository Utilities 5-25
Figure 5-18. CICS Program Inventory Maintenance Screen
-------- CODE COVERAGE 17.02 - CICS PROGRAM INVENTORY MAINTENA Row 1 to 3 of 3
Command ===> Scroll ===> PAGE
Line Cmds: CO (collect), C (copy), D (delete), EX (export), U (undo)
Primary Cmds: POPulate, COPY , EXPort, IMPort, END (process), UPDate,
CANcel, Refresh , Sort
Inventory file ===> 'ACMJET0.PGMINV.TEST'
Edit JCL ===> NO (Batch mode: Yes/No) More ->
CMD Module CSECT Compile Date/Time Lang/Opt Verbs Collect Status
-- -------- -------- ------------------- ----- ------ --- ----------
__ ASMPGM ADDOPER 2013/08/18 14:01:00 ASM/N 9 ON
__ ASMPGM ASMPGM 2013/08/18 14:01:00 ASM/N 46 ON
__ ASMPGM SUBOPER 2013/08/18 14:01:00 ASM/N 9 ON
******************************* Bottom of data ********************************
The Program Inventory Maintenance screen also scrolls right, allowing users to view the source listing file and member associated with each chosen CSECT.
Figure 5-19. CICS Program Inventory Maintenance Screen, scrolled right
-------- CODE COVERAGE 17.02 - CICS PROGRAM INVENTORY MAINTENA Row 1 to 3 of 3
Command ===> Scroll ===> PAGE
Line Cmds: CO (collect), C (copy), D (delete), EX (export), U (undo)
Primary Cmds: POPulate, COPY , EXPort, IMPort, END (process), UPDate,
CANcel, Refresh , Sort
Inventory file ===> 'ACMJET0.PGMINV.TEST'
Edit JCL ===> NO (Batch mode: Yes/No) <- More
CMD Module CSECT Source Listing File Member
-- -------- -------- -------------------------------------------- -----------
__ ASMPGM ADDOPER XD.TEST.R77.CX800.SHRDIR1 ASMPGM
__ ASMPGM ASMPGM XD.TEST.R77.CX800.SHRDIR1 ASMPGM
__ ASMPGM SUBOPER XD.TEST.R77.CX800.SHRDIR1 ASMPGM
******************************* Bottom of data ********************************
Note: Excluded from the actions allowed from a batch job is the GENERATE command.
Equivalent functionality can be created using wildcard entries for COLLECT statements.
Line Commands
The line commands displayed in Figure 5-18 are defined as follows:
CO Collect. Toggles the collection status on and off. The status message displayed is “COLL PEND”.
C
Copy. Marks records selected for copy to another program inventory file from the current one. The status message displayed is “COPY PEND”.
D
Delete. Removes an entry From the inventory file and from the displayed table. The status message displayed is “DEL PEND”.
EX
Export. Marks the records selected for export to the export file from the current inventory file. The status message displayed is “EXPRT PEND”.
U Undo. Removes a pending action.
5-26 Xpediter/Code Coverage Mainframe User/Reference Guide
Primary Commands
POPulate
Adds members to the current CICS Program Inventory file. When issued, this
command displays the “Program Inventory Populate Popup Window” described on page 5-31.
COPY
Copies records from one Program Inventory file to another. When issued, this
command displays the “Program Inventory File Copy Popup Window” described on page 5-28.
EXPort
Extracts records from a Program Inventory file into a sequential dataset. When
IMPort
Moves records from a previously exported file to the current Program Inventory file.
When issued, this command displays the “Program Inventory File Import Popup
Window” described on page 5-30.
LEFT
Shifts the detail lines of the CICS Program Inventory Maintenance screen to the left because the data on the screen exceeds 80 columns. The module and CSECT columns are stationary and the data to the right of these columns shifts left.
LOCATE
The LOCATE command is used to position CICS Program Inventory Maintenance display to the requested module. The format is LOCATE module name, where the
module name may be a complete name or a partial name. The LOCATE command may be abbreviated as L. If the module name is omitted, the display is positioned at the top of data. If the module name is an exact match of a module in the display, then that module is positioned at the top of the display. If the module name contains a partial module name, such as “LOCATE CW” (or if the module name cannot be located in the display) then the display is positioned at the module preceding the first module beginning with CW.
END
Processes the pending lines and indicates if updates were successfully processed, then returns to the previous screen. All pending line commands are processed before exiting the current screen.
UPDate
Updates the CICS Program Inventory maintenance file for pending deletes and collection status changes. The UPDATE command may be abbreviated as UPD. If the
“Edit JCL” parameter is set to No, then the JCL is submitted automatically.
CANcel
Discards all pending lines and exits without processing.
Refresh
Reloads the inventory file directory displayed on the screen. The Refresh command can be abbreviated R. Use this command any time the contents of the CICS Program
Inventory file changes (for example, after submitting a job to delete records or change the collection status).
Using Results Repository Utilities 5-27
RIGHT
Sort
Shifts the detail lines of the CICS Program Inventory Maintenance screen to the right because the data on the screen exceeds 80 columns. The module and CSECT columns are stationary and the data to the right of these columns shifts right.
Allows sorting of the CICS Program Inventory Maintenance display using the following syntax:
Sort <column name> (A/D) where (A/D) represents either Ascending or Descending sorting order. The default is
Ascending. The following parameters can be used for the <column name>:
MODULE load module name (default)
CSECT CSECT name
COMPILE compile date and time
LANG programming language
VERBS number of verbs in program
COLLECT collection status
SOURCE source listing file
MEMBER source member name
If no parameter is given with the sort command, sorting defaults to the load module name in ascending order. The Sort command can be abbreviated S.
Output Fields
Module
The CICS load module to be code covered.
CSECT
The control section (CSECT) within the load module to be covered.
Compile DATE/TIME
The date and time the CSECT was processed using Compuware’s listing processor.
Lang/Opt
The recorded value of the language compiler and whether or not it is optimized by the compiler. Possible values are:
ASM/N the CSECT is Assembler and not optimized
CBL/N the CSECT is COBOL and not optimized
PLI/N the CSECT is PL/I and is not optimized
UND/N the CSECT’s language is undefined
CBL/Y the CSECT is COBOL and is optimized
PLI/Y the CSECT is PL/I and is optimized
5-28 Xpediter/Code Coverage Mainframe User/Reference Guide
Verbs
The number of verbs in the program.
Collect
Whether or not Code Coverage collection will be allowed.
Status
Whether or not a line command is pending execution.
Source Listing File
The Compuware source listing file containing the compiled listing for the CSECT.
Member
The member name in the Compuware source listing file for this CSECT.
Input Fields
Cmd
Specifies one of the available line commands next to the module you want to affect.
See “Line Commands” on page 5-25 for details of each command that can be entered
in this field.
Program Inventory File Copy Popup Window
The File Copy popup window shown in Figure 5-20 allows users to copy selected program
inventory members to another program inventory file. This window appears when users execute the COPY primary command from the Program Inventory Maintenance screen
(see Figure 5-18 on page 5-25).
Figure 5-20. Program Inventory File Copy Popup Window
CICS PROGRAM INVENTORY FILE COPY
Copy to file ===>
Replace records ===>
Number of pending copy records ===>
Use the following fields to globally copy records using wildcards:
Module Name ===>
CSECT ===>
Compile Date ===>
Compile Time ===>
Press ENTER to Process or enter END command to Terminate
Input Fields
Copy to file
The name of the new Program Inventory file to which the selected records should be copied. Defaults to the Inventory Copy file from the CICS Program Inventory
Datasets screen. Any valid CICS Program Inventory file may be entered here.
Changing this field on this screen does not change the “Inventory Copy” entry on the CICS Program inventory Datasets screen.
Replace records
Whether or not duplicate members are to be replaced on the “copy to file.” A member is considered to be a duplicate if the module, CSECT, and compile date and time are equal. Valid values are YES, NO, and ALL:
YES Only existing members that match date and time will be overwritten.
Using Results Repository Utilities 5-29
NO Duplicate entries will not be overwritten. This is the default.
ALL Any matching member will be overwritten.
Number of pending copy records
The number of detail lines the user has entered a copy line command on prior to entering the COPY primary command. Records with status “COPY PEND” plus any other members indicated in the global copy section will be copied to the “copy to file.”
Module Name
The desired module within the source file you wish to copy to the new Program
Inventory file. Trailing asterisks (*) may only be used as wildcards at the end of this field, not in the middle.
CSECT
The CSECT within the desired source module that you are copying to the new
Program Inventory file. Trailing asterisks (*) may only be used as wildcards at the end of this field, not in the middle.
Compile Date
The date on which the records to be copied were compiled. The date format is
CCYYMMDD (century, year, month, and day). If no compile date is entered, this field defaults to an asterisk (*).
Compile Time
The time at which the records to be copied were compiled. The time format is
HHMMSS (hour, minute, and second). If no compile time is entered, this field defaults to an asterisk (*).
Program Inventory File Export Popup Window
The File Export popup window shown in Figure 5-21 allows users to export selected
records to the export file from the current inventory file. This window appears when users execute the EXPort primary command from the Program Inventory Maintenance
screen (see Figure 5-18 on page 5-25).
Figure 5-21. Program Inventory File Export Popup Window
CICS PROGRAM INVENTORY FILE EXPORT
Export to file ===>
Number of pending copy records ===>
Use the following fields to globally export records using wildcards:
Module Name ===>
CSECT ===>
Compile Date ===>
Compile Time ===>
Press ENTER to process or enter END command to terminate
Input Fields
Export to file
The name of the file to which the marked records should be exported. Any valid, sequential export file may be entered here. Sample JCL is supplied in SMXDSAMP member JCLCDEFE for creating an export dataset. Changing this field on this screen does not change the “Inventory EXP” entry on the Program Inventory Datasets
5-30 Xpediter/Code Coverage Mainframe User/Reference Guide screen. This field defaults to the “Inventory EXP” file from the Program Inventory
Datasets file.
Number of pending export records
The number of detail lines the user has entered an EXport line command on prior to entering the EXPORT primary command. Records with status “EXPRT PEND” plus any other members indicated in the global export section will be copied to the
“export to file.”
Module Name
The desired module within the source file you wish to export to the new Program
Inventory file. Trailing asterisks (*) may only be used as wildcards at the end of this field, not in the middle.
CSECT
The CSECT within the desired source module that you are exporting to the new
Program Inventory file. Trailing asterisks (*) may only be used as wildcards at the end of this field, not in the middle.
Compile Date
The date on which the records to be exported were compiled. The date format is
CCYYMMDD (century, year, month, and day). If no compile date is entered, this field defaults to an asterisk (*).
Compile Time
The time at which the records to be exported were compiled. The time format is
HHMMSS (hour, minute, and second). If no compile date is entered, this field defaults to an asterisk (*).
Program Inventory File Import Popup Window
The File Import popup window shown in Figure 5-22 allows users to move records from a
previously exported file to the current inventory file. This window appears when users execute the IMPort primary command from the Program Inventory Maintenance screen
Figure 5-22. Program Inventory File Import Popup Window
CICS PROGRAM INVENTORY FILE IMPORT
Import from file ===> ______________________________________________
Replace records ===> NO (Yes or No)
Use the following lines to globally import records using wildcards:
Module Name ===> *
CSECT ===> *
Compile Date ===> ____ __ __ (YYYY or YY MM DD)
Compile Time ===> __ __ __ (HH MM SS)
Press ENTER to Process or Enter END Command to Terminate
Input Fields
Import from file
The name of the previously exported file name from which the selected records should be imported. Any valid, sequential export file may be entered here. Changing this field on this screen does not change the “Inventory IMP” entry on the Program
Inventory Datasets screen. This field defaults to the “Inventory IMP” file from the
Program Inventory Datasets file.
Using Results Repository Utilities 5-31
Replace records
Whether or not duplicate members are to be replaced on the target import file. A member is considered to be a duplicate if the module, CSECT, and compile date and time are equal. Valid values are YES and NO. The default is NO.
Module Name
The desired module within the source file you are importing to the new Program
Inventory file. Trailing asterisks (*) may only be used as wildcards at the end of this field, not in the middle.
CSECT
The CSECT within the desired source module that you are importing to the new
Program Inventory file. Trailing asterisks (*) may only be used as wildcards at the end of this field, not in the middle.
Compile Date
The date on which the records to be imported were compiled. The date format is
CCYYMMDD (century, year, month, and day). If no compile date is entered, this field defaults to an asterisk (*).
Compile Time
The time at which the records to be imported were compiled. The time format is
HHMMSS (hour, minute, and second). If no compile date is entered, this field defaults to an asterisk (*).
Program Inventory Populate Popup Window
The Populate popup window shown in Figure 5-23 allows users to add members to the
current program inventory file. This window appears when users execute the POPulate
primary command from the Program Inventory Maintenance screen (see Figure 5-18).
Figure 5-23. Program Inventory Populate Popup Window
CICS PROGRAM INVENTORY POPULATE
Collect Replace Member
Module CSECT ON/OFF YES/NO/ALL (optional)
-------- -------- --- --- --------
________ ________ ON YES ________
________ ________ ON YES ________
________ ________ ON YES ________
________ ________ ON YES ________
Provide detailed messages ==> NO (Yes/No)
Press ENTER to Process or Enter END Command to Terminate
Input Fields
Module
The name of the load module that contains the CSECT that will be code covered. If the Member field is used, then this field cannot contain wildcards.
CSECT
The name of the CSECT that will be code covered. If the Member field is used, then this field cannot contain wildcards.
Collect ON/OFF
The collection status for one or more programs once you have designated which programs you want Code Coverage to monitor. Valid values are ON and OFF. The
5-32 Xpediter/Code Coverage Mainframe User/Reference Guide default is ON. If collection is set to OFF, Code Coverage data will not be collected for the specified CSECT.
Replace YES/NO/ALL
Whether or not existing duplicate program entries in the target file should be overwritten by values in the CICS Program Inventory file. A member is considered to be a duplicate if the module, CSECT, and compile date and time are equal. Valid values are YES, NO, and ALL. The default is NO.
Member
The member name of the source listing on the Compuware source listing file. This is usually the same name as the CSECT name. This field cannot be wildcarded. If this field is used, the module name and CSECT name must be provided without wildcards.
Provide detailed messages
Specifies the detail of the messages created by the Populate utility. Valid values are
YES and NO. The default is NO. If this option is set to NO, a message will be produced for each member indicated on this screen. If the option is set to YES, a message will be created for each member read from the CICS application load libraries specified. This option is only available in the batch mode because messages produced by the populate utility are not shown in foreground mode unless an error occurs.
Preuzimanje
Reklama