Exercise 5.9: Monitoring variables in PAYROLLG

Before you begin, you must complete Exercise 5.8: Removing a breakpoint in PAYROLLG.

Now lets monitor variables and change them in PAYROLLG.

To monitor variables:

  1. In the source view, double-click the variable EMPAPL on line 88.
  2. Right-click the variable.
  3. Click Monitor Expression on the pop-up menu.
    Monitor expression
  4. Click the Monitors tab in the upper right pane.

    The variable appears in the Monitors view. Its value is blank because you did not select the Employee Master Maintenance option.

  5. In the same way add the variables PRJAPL on line 91 and RSCDE on line 113 to the monitor.

    Variable PRJAPL equals X because you did select the Project Master Maintenance option.

  6. In the Monitors view, double-click the variable RSCDE.

    The value changes into an entry field.

  7. In the entry field, type in the new value X for the variable.
    Monitor Expression view
  8. Press Enter.

    The variable is successfully changed.

You have monitored several variables in PAYROLLG and now you are ready to begin Exercise 5.10: Adding a memory monitor.