If one of the statements being run contains a Call (CALL) statement to another program, the source debugger steps into the called program. Each statement in the called program is counted in the step. If the step ends in the called program, the called program is shown in the Display Module Source display. For example, if you enter STEP 5 INTO, the next five statements of the program are run. If the third statement is a Call (CALL) statement to another program, two statements of the calling program are run and the first two statements of the called program are run.
The STEP INTO command works with the Call (CALL) command as well. You can take advantage of this to step through your program after calling it. After starting the source debugger, from the initial Display Module Source display, enter STEP 1 INTO and press the Enter key. This sets the step count to 1.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.