Debugging Intermediate Code Programs

When you run a program as intermediate code and the COBOL system traps a protection violation, the run-time system gives an RTS error and identifies the program in which the error occurred. The run-time system also gives a reference to the COBOL source line which caused the failure. In order to identify the COBOL source line from the reference you must compile the source with the Compiler directives LIST() and REF. Each source line then has a reference at the extreme right of the listing which identifies the starting location for the procedure for each statement.