Previous Topic: Declare a Programmed Breakpoint in a PL/I ProgramNext Topic: Declare a Programmed Breakpoint in an Assembler Program


Declare a Programmed Breakpoint in a COBOL Program

The CALL statement that sets up a programmed breakpoint in a COBOL program is coded in the standard manner as follows:

WRITE‑RESPONSE.
  MOVE ERROR‑CODE TO RESPONSE.
  CALL 'PBP' USING RESPONSE.

At this programmed breakpoint, the breakpoint display shows the first 16 bytes of the field named RESPONSE.

If you do not include parameters in the CALL statement, a programmed breakpoint still occurs but data is not automatically displayed.