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.
Compiler Details (↑ Command Lines)
 Key Summary                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Parameters:
 
     src-name           The file containing your source code. If you
                        omit the extension, .CBL is assumed unless you
                        have used the OSEXT directive.
 
     obj-name           The file to contain the compiled object code.
                        If you omit this, src-name.OBJ is assumed. If
                        you specify an extension of .EXE or .DLL the
                        compiler invokes LINK, after compilation, to
                        create the specified executable file. It uses
                        the run-time libraries specified by the
                        LINKLIB directive.
 
     src-list           The file to contain the source code listing.
                        If you omit the extension, .LST is assumed.
                        If you omit this parameter and its preceding
                        comma, no list file is produced. If you
                        specify just the comma, a listing file called
                        src-name.LST is produced.
 
     obj-list           The file to contain the object code listing.
                        If you omit the extension, .GRP is assumed.
                        If you omit this parameter and its preceding
                        comma, no list file is produced. If you
                        specify just the comma, a listing file called
                        src-name.GRP is produced.
 
     dirs               One or more compiler directives, separated
                        by spaces. A directive must not be broken
                        across two lines. Directives can appear after
                        any file-name, but if a further file-name
                        then appears you must put a comma before it.
                        If you specify a directive immediately after
                        a comma you must put a slash (/) before it to
                        prevent it being taken as a file-name.
 
                        The compiler processes the command line from
                        left to right. If a directive appears more
                        than once the compiler uses the rightmost
                        setting.
 
 
     See your COBOL System Reference for more details of this command
     line.
                                    -♦-