Previous Topic: When to Use BreakpointsNext Topic: Change Breakpoints - CICS


Set Unconditional Breakpoints

At an unconditional breakpoint, the program stops at the location you specify, just before the statement is executed. Let us see how to set a breakpoint at the following IF statement. You set unconditional breakpoints directly on the Program Listing area.

Follow these steps:

  1. Click the demo COBOL program listing on the Program Listing area, so its name is highlighted in its tab.
  2. Press <Ctrl> + F on your keyboard.

    The Find/Replace dialog opens.

  3. Type If Tasknum Greater 2 in the Find box, and click Find.

    The demo program positions itself so that the line you searched for appears in the program listing.

    Adds a breakpoint to the program listing.

  4. Right-click the ruler to the left of the line you have selected (statement 484), and select Add Breakpoint.

    An unconditional breakpoint for C370DEMO.

    A blue circle appears to the left of the ruler, and a blue mark appears in the right-side vertical ruler. By default, the Add Breakpoint dialog adds an unconditional breakpoint if the listing line is within the Procedure Division, and a variable change breakpoint if the line is within the Data Division.

    Unconditional Breakpoint CICS COBOL2.

    Note: You cannot add a breakpoint in a comment line or outside the source code section.