Setting Notifications for ON-units

You can set notifications for ON-units in CodeWatch, either from the command line or from GUI CodeWatch.

Using Command-line CodeWatch

  • Use the CATCH command to turn notification on for a specified ON-unit.
  • Use the NCATCH command to turn notification off for a specified ON-unit.
  • Use the LCATCH command to list the catch status of a specified ON-unit/signal, or the state of all signals and ON-units.

See the help topics for the CATCH, NCATCH, and LCATCH commands for details and examples of using these commands.

Using GUI CodeWatch

While debugging your PL/I program in GUI CodeWatch, do the following to set notification for specific ON-units:

  1. Choose Actions > Catch Exceptions > On Units. The Configure On Unit Exceptions dialog box appears with the supported ON-units.
  2. Select the check box of the supported ON-units for which you want to turn on notification, and clear the check box of the supported ON-units for which you want to turn off notification.
  3. Click OK.