Rational Developer for System z
COBOL for Windows, Version 7.5, Language Reference


SOURCE-COMPUTER paragraph

The SOURCE-COMPUTER paragraph describes the computer on which the source text is to be compiled.

Format
Read syntax diagramSkip visual syntax diagram>>-SOURCE-COMPUTER.--------------------------------------------->
 
>--+------------------------------------------------+----------><
   '-computer-name--+--------------------------+--.-'  
                    '-+------+--DEBUGGING MODE-'       
                      '-WITH-'                         
 
computer-name
A system-name. For example:

IBM-X22
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.


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)