Debugging Subroutines (Code Debug CICS PL/I)
This section discusses how to test load modules that consist of multiple programs or control sections (CSECTs). The sections of the section show how to access source code and set breakpoints in calling and called programs, execute a program with multiple CSECTs, and return to the calling program. It also provides ways to select and exclude CSECTs.
Many modules consist of individual source members that are compiled or assembled separately, then link-edited together to create a load module. Code Debug CICS lets you debug these CSECTs at the source level, even when the CSECT is not defined in your program resources.
The automatic CSECT support facility provides screens that list the CSECTs associated with each program. You choose the program for which you need to see the source. Facilities are also available so that IBM or vendor-supplied CSECTs may be excluded from automatic CSECT processing.
In this section, you will set a breakpoint in the calling program CWDEMPE, then access the source code for CWCDSUBA and set a breakpoint there. CWCDSUBA is a subroutine linked into CWDEMPE that does not have an entry in the program resources to define it to CICS. After setting the breakpoint, you will execute the transaction that runs CWDEMPE and step through the source in CWCDSUBA.
This section provides information about the following topics: