Getting a COBOL routine traceback
Often when you get close to a programming error, you want to know
how you got into that situation, and especially what the traceback
of calling routines is. To get this information, issue the command:
LIST CALLS ;
Example: sample COBOL program for debugging
For example, if you run the COBCALC example with the commands:
AT APPEARANCE COBVALU AT ENTRY COBVALU;
GO;
GO;
LIST CALLS;
the Log window contains something like:
AT APPEARANCE COBVALU
AT ENTRY COBVALU ;
GO ;
GO ;
LIST CALLS ;
At ENTRY in COBOL program COBVALU.
From LINE 67.1 in COBOL program COBCALC.
which
shows the traceback of callers.