Debugging requires no changes to your program code. It requires that your project is associated with the JCLDEMO enterprise server and that the enterprise server is configured to enable dynamic debugging, which you performed in the previous steps.
On a line in the Procedure Division, right-click and select to insert a breakpoint.
For example, in JCLREAD.cbl, set a breakpoint on the line for OPEN INPUT INFILE. In JCLCREAT.cbl, set a breakpoint for the line for OPEN OUTPUT OUTFILE.
The debugger enters a wait state.
The debugger stops in your JCLCREAT program at the breakpoint.
Notice the messages that have appeared in the Output window.