In this example, we want to stop the program when the date field BigDate
has a certain value. To specify the conditional
job breakpoint using
the BREAK command:
- From the Display Module Source display, enter:
break 128 when BigDate='1994-09-30'
A conditional job breakpoint is set on line 128.
- After the breakpoint is set, press F3 (End Program) to leave the ILE source
. Your breakpoint is not removed.
- Call the program. When a breakpoint is reached, the program stops, and
the Display Module Source display is shown again.
Figure 1. Setting a Conditional Job
Breakpoint Using the BREAK Command Display Module Source
Program: DEBUGEX Library: MYLIB Module: DBGEX
122
123 *---------------------------------------------------------------
124 * After the following SETON operation, *IN02 = '1'.
125 *---------------------------------------------------------------
126 C SETON
127 C IF *IN02
128 C MOVE '1994-09-30' BigDate
129 C ENDIF
130
131 *---------------------------------------------------------------
132 * Put a new value in the second cell of Arry.
133 *---------------------------------------------------------------
134 C MOVE 4 Arry
135
136 *---------------------------------------------------------------
More...
Debug . . . break 128 when BigDate='1994-09-30'______________________________
_______________________________________________________________________________
F3=End program F6=Add/Clear breakpoint F10=Step F11=Display variable
F12=Resume F17=Watch variable F18=Work with watch F24=More keys