Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

LISTING directive

The LISTING directive controls whether or not source text is to be listed.

Format


>>LISTING {ON | OFF}


General rules

  1. 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:

  2. The LISTING directive is executed after the COPY and REPLACE statements.

  3. The >>LISTING ON/OFF directive is always listed, even if the listing itself is suppressed by a LISTING directive.

  4. If OFF is specified then, except for another LISTING OFF directive, source text will not be listed until a LISTING ON directive is encountered.

  5. 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.