Loading...
Select Version
The LISTING directive controls whether or not source text is to be listed.
Format
>>LISTING {ON | OFF}
General rules
If the compiler does not produce a source text listing (see "COBOL2000 User Guide" [1]), the LISTING directive is ignored; otherwise, the following rules apply:
The LISTING directive is executed after the COPY and REPLACE statements.
The >>LISTING ON/OFF directive is always listed, even if the listing itself is suppressed by a LISTING directive.
If OFF is specified then, except for another LISTING OFF directive, source text will not be listed until a LISTING ON directive is encountered.
If ON is specified or implied, source text will be listed until either a LISTING OFF directive is encountered or the end of the compilation group is reached.