Topaz for Total Test Sample Training Programs
The Enterprise Common Components (ECC) sample library (hlq.SLCXCNTL) includes sample programs you can use to demonstrate Topaz for Total Test functionality and to verify the Topaz for Total Test installation. We recommend that, in addition to these procedures, you test your own application programs before considering the installation complete.
Topaz for Total Test Sample Training Files
Member | Function |
---|---|
CSDKTXD | Member CSDKTXD contains the RDO definitions for the CICS test program. It defines the programs, and transactions, and files KTXD. |
CWKTCDB2 | Sample JCL used to prepare the Db2 test program and also Create, and Grant a Db2 table. The last step also executes the program. |
CWKT | COBOL source code for use with |
CWKTCOBX | COBOL source code for use with QSAM input file. |
CWKTDATE | COBOL source code |
CWKTSUBC | COBOL source code |
CWKTVSKS | COBOL |
KTX2DEMO | COBOL CICS commands |
KTXDDEMO | COBOL CICS commands. |
LAUNCHDB | Sample JCL for use with Xpediter/Eclipse launch configuration |
LAUNCHCX | Sample JCL for use with Xpediter/Eclipse launch configuration |
LAUNCHKS | Sample JCL for use with Xpediter/Eclipse launch configuration |
RUNNER | Information on how to create a RunnerDB2.jcl file for use with test program CWKTDB2X. |
RUNNERCX | Information on how to create a Runner.jcl file for use with test program CWKTCOBX. |
RUNNERKS | Information on how to create a Runner.jcl file for use with test program CWKTVSKS. |
TTTDATD | Used as a QSAM input file for |
TTTDATH | Used as a QSAM input file for CWKTCOBX. |
VSAMKSDC | Sample JCL used to create a VSAM KSDS copy file for test program KTX2DEMO. |
VSAMKSDS | Sample JCL used to create a VSAM KSDS input file for test program CWKTVSKS and KTX2DEMO. |
Use the Compuware Shared Services (CSS) COBOL Language Processor (LP) to compile the sample programs and write source listings to a DDIO file. Refer to the Compuware Shared Services Compuware Source Support Best Practices for information on using the COBOL Language Processor.
- Option 1: Use ISPF CSS Utilities to convert existing compile JCL by selecting Option 2.1 (Convert existing compile JCL to use LP).
- Option 2: Use ISPF CSS Utilities to create new compile JCL by selecting Option 2.2 (Create compile JCL to use LP).
- Option 3: Use the ISPF Xpediter/TSO Compile Facility by selecting Option 1 (PREPARE) from the Xpediter/TSO Primary Menu. Refer to the Xpediter/TSO and Xpediter/IMS COBOL User Guide for more information.
- Option 4: Manually convert compile and bind JCL and set up LP parameters to write source listings to a DDIO file. Refer to the Compuware Shared Services User/Reference Guide for more information.
CWKTCOBX Test Program
CWKTCOBX is a COBOL QSAM demo program that utilizes sub programs CWKTDATE and CWKTSUBC. Compile CWKTDATE and CWKTSUBC first before CWKTCOBX.
The LAUNCHCX member contains sample JCL. Use it in an Xpediter/Eclipse Batch debug launch configuration to execute the CWKTCOBX program and to easily generate Topaz for Topaz for Total Test unit tests.
The RUNNERCX member contains information on how to create a Runner.jcl file for use with test program CWKTCOBX in a Topaz for Total Test Project JCL folder.
CWKTDB2X Test Program
CWKTDB2X is a COBOL demo program that accesses a Db2 table and utilizes sub programs CWKTDATE and CWKTSUBC. Compile CWKTDATE and CWKTSUBC first before CWKTDB2X. The CWKTCDB2 member contains sample JCL used to prepare the test program and also Create and Grant a Db2 table. The last step also executes the program.
The LAUNCHDB member contains sample JCL. Use it in an Xpediter/Eclipse Batch debug launch configuration to execute the CWKTDB2X program and to easily generate Topaz for Total Test unit tests.
The RUNNERDB member contains information on how to create a RunnerDB2.jcl file for use with test program CWKTDB2X in a Topaz for Total Test Project JCL folder.
CWKTVSKS Test Program
CWKTVSKS is a COBOL VSAM KSDS demo program that also utilizes sub programs CWKTDATE and CWKTSUBC. Compile CWKTDATE and CWKTSUBC first before CWKTVSKS.
Use the VSAMKSDS member to create a sample VSAM KSDS input file. The dataset created from this member is used in the LAUNCHKS and RUNNERKS JCL members.
The LAUNCHKS member contains sample JCL. Use it in an Xpediter/Eclipse Batch debug launch configuration to execute the CWKTVSKS program and to easily generate Topaz for Total Test unit tests.
The RUNNERKS member contains information on how to create a Runner.jcl file for use with test program CWKTVSKS in a Topaz for Total Test Project JCL folder.
KTX2DEMO
The CICS COBOL sample program KTX2DEMO and related sub program CWKTDATE demonstrate a wide variety of supported EXEC CICS commands. Functions demonstrated in this program are file I/O, Transient Data queue, Channels and Containers, delay, Write to operator, cancel, retrieve, start, and syncpoint.
In addition to the main program KTX2DEMO you will need to first compile and link sub program CWKTDATE. Both programs need to be linked with AMODE(31),RMODE(ANY). Refer to the Xpediter for CICSdocumentation on compiling and linking.
2 VSAM files need to be created using the VSAMKSDS and VSAMKSDC members to create sample VSAM KSDS input files.
The required RDO entries for this program can be added via the CSDKTXD sample member.
KTXDDEMO
The CICS COBOL sample program KTXDDEMO and related sub program CWKTDATE demonstrate the initial group of supported EXEC CICS commands. In addition to the main program KTXDDEMO you will need to first compile and link sub program CWKTDATE. Both programs need to be linked with AMODE(31),RMODE(ANY). Refer to the Xpediter for CICS documentation on compiling and linking.
The required RDO entries for this program can be added via the CSDKTXD sample member.