Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

Compiler control options

The method used for the input of source data, the attributes of the generated module, the output of messages and listings, as well as the output of the object module itself can be controlled by means of statements issued to the COBOL2000 compiler.
The COBOL2000 compiler can be controlled in different ways:

  • by means of options in the SDF syntax format

  • by means of COMOPT statements

  • by means compiler directives

The user chooses one of the two control options through the type of command used to call the compiler:

Compiler invocation command

Control mode

/START-COBOL2000-COMPILER options

SDF control, expert mode

/?

SDF control, menu mode

/START-COBOL2000-COMPILER?

SDF control, menu mode

/START-PROGRAM name compiler-phase or
name starter-phase 1

COMOPT control

/START-COBOL2000-COMPILER

None; input of compilation unit from SYSDTA

Table 3: Compiler invocation commands and control modes
1 does not apply to COBOL2000-BC


SDF control options are described in the chapter "Controlling the compiler via SDF", COMOPT control options in the chapter "Controlling the compiler with COMOPT statements".

Compiler control in the POSIX subsystem is described in the chapter "COBOL2000 and POSIX".

Compiler control via compiler directives is described in chapter "Controlling the compiler with compiler directives" and in the “COBOL2000 Reference Manual” [1].