SOURCE-COMPUTER paragraph
The SOURCE-COMPUTER paragraph describes the computer on which the source text is to be compiled.
- computer-name
- A system-name. For example:
IBM-system
- WITH DEBUGGING MODE
- Activates a compile-time switch
for debugging lines written in the source text.
A debugging line is a statement that is compiled only when the compile-time switch is activated. Debugging lines allow you, for example, to check the value of a data-name at certain points in a procedure.
To specify a debugging line in your program, code a D in column 7 (indicator area). You can include successive debugging lines, but each must have a D in column 7, and you cannot break character strings across lines.
All your debugging lines must be written so that the program is syntactically correct, whether the debugging lines are compiled or treated as comments.
The presence or absence of the DEBUGGING MODE clause is logically determined after all COPY and REPLACE statements have been processed.
You can code debugging lines in the ENVIRONMENT DIVISION (after the OBJECT-COMPUTER paragraph), and in the data and procedure divisions.
If a debugging line contains only spaces in Area A and in Area B, the debugging line is treated the same as a blank line.
All of the SOURCE-COMPUTER paragraph is syntax checked, but only the WITH DEBUGGING MODE clause has an effect on the execution of the program.