

COBOL Advanced Demo Session › Option 07: How to Test a Composite Module › Review What Happened
Review What Happened
In this part of the demo session the following occurred:
- When you executed COBDEML, CA InterTest for CICS detected and prevented an abend caused by invalid data in one of its called subroutines.
CA InterTest for CICS displayed the automatic breakpoint at the statement that called the subroutine, rather than the statement that triggered the breakpoint, because CA InterTest for CICS was not monitoring the subroutine.
- You set composite support for COBDEML so that CA InterTest for CICS would monitor its subroutines: ASBIN25 and CSBIN25.
Setting composite support lets you test and debug a called subroutine with full symbolic support and take of all CA InterTest for CICS features.
- When you reexecuted COBDEML, CA InterTest for CICS redisplayed the automatic breakpoint; this time at the actual statement in subroutine ASBIN25 that caused the error.
- You corrected the error by overtyping the contents of the invalid field.
- You then set an unconditional breakpoint in the other subroutine, CSBIN25, and resumed program execution. When control passed to CSBIN25, CA InterTest for CICS halted execution at the breakpoint you set.
The ability to halt execution at any statement in a subroutine means you can test a subroutine just as if it were a main program.
- You removed the unconditional breakpoint and continued program execution.
- You have now completed Option 07 of the advanced demo session.
- Press Enter to continue with the test session.
or
Press Clear to terminate the session.
Copyright © 2014 CA Technologies.
All rights reserved.
 
|
|