Halting when certain routines are called in COBOL

This topic describes how to halt just before or just after a routine is called by using the AT CALL or AT ENTRY commands. The Example: sample COBOL program for debugging is used to describe these commands.

To use the AT CALL command, you must compile the calling program with the TEST compiler option.

To halt just before COBLOAN is called, enter the following command:

AT CALL COBLOAN ;

To use the AT ENTRY command, you must compile the called program with the TEST compiler option.

To halt just after COBVALU is called, enter the following command:

AT ENTRY COBVALU ;

To halt just after COBVALU is called and only when CALL-FEEDBACK equals OK, enter the following command:

AT ENTRY COBVALU WHEN CALL-FEEDBACK = "OK" ;