There is a smiulator program A which reads a VSAM file, it then sends that file to another program B for processing using a EXEC CICS START TRANS(XXXX) command. I am able to list the source keep the break points in both A and B, selected the CSects. I have also given the entries in TRAP Summary , TRACE summary
Now when I give the trans id, the source of program A is shown and I could execute it step by step until end. However the program B source is not shown whenever the START command is encountered. It simply executes and passes to next statment.
How to debug the program B. Is there a way or option in XPED to do this.
Joined: 05 Dec 2006 Posts: 153 Location: Seattle, WA
Yes, Expediter does that.
In your region, before you execute program A, type XPED PROGRAM B.
This puts you in Expediter at the beginning of the Procedure Division of Program B. Set a breakpoint.
Then F3 out of this until you get to the screen that asks if you want to END SESSION (3 times on my system). Make sure it is set to NO, then press ENTER. This puts you back out at the blank CICS screen.
Execute Program A and when it enters Program B, it will go right into Expediter at your breakpoint.
When you are finished, you have to end Expediter or it will just hang out there. So at the blank CICS screen, type XPED and press the enter key.
F3 once and you should be at the screen asking if you want to END SESSION again. This time, type YES and press Enter.
Your Expediter session is ended and all goes back to normal.