Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

General options

–c

This option terminates the compiler run once an LLM has been generated and stored in an object file named basename.o for each source file compiled. basename is the name of the source file without its directory components and without the .cob or .cbl extension. The object file is written to the current directory.

If a compilation unit is compiled without this option, a linkage run is started once compilation is complete.

–k filename

This option allows you to specify a COBOL source file which does not have the extension .cbl or .cob.

If the source file name specified with -k does however end with the suffix .cbl or .cob, this suffix is overwritten with the suffix .o or .lst when the basename for the object and listing files is formed.

–v

This option causes the following information to be displayed on the screen:

  • Copyright and version strings of the driver for the COBOL2000 compiler and the cobol command

  • Messages of the COBOL2000 compiler relating to accepted control statements

  • All the information and error messages of the compilation run

  • CPU time consumed

  • the full command line for the call to the linkage editor

This option affects only the output of the COBOL2000 compiler.

–W err-level

This option is mapped internally to COMOPT MINIMAL-SEVERITY = err-level. The COMOPT MINIMAL-SEVERITY should not therefore be passed with -C.
As a result of this option, the diagnostic listing excludes any messages with an error level lower than the specified value. The possible values for err-level are:

I

0

1

2

3

information (default)

warning

error

unrecoverable error

system error