cobol2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
LIST Details (↑ Compiler Control)
 Key Summary                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     If you specify an existing file, it is overwritten. When NOLIST
     is specified, no source listing is produced. If you specify LIST
     with no destination, the source listing is sent to the screen. If
     you specify either destination or "", you cannot use this directive
     in a $SET statement.
 
     The device-name can be any suitable device, such as CON: for
     the screen.
 
     NOLIST and LIST with no parameter may be used in $SET statements
     within a program to list selected parts of the program. The
     destination of the listing cannot be changed in this way.
 
     LIST "" causes the source listing to be put in the file
     source-file-name.LST, where source-file-name is the root of the
     name of the program being compiled.
 
     If you want to list the source to a file for every compilation
     you do, place the LIST "" directive in the COBOL.DIR file. This
     will override the default NOLIST.
 
     Alternatively, if you already have a LIST directive in your
     COBOL.DIR, making every listing go to the screen, you can
     override it by using LIST "" on the command line.
                                    -♦-