Previous Topic Next topic Print topic


Order in which Compiler Directives Are Processed

Choose the appropriate way to set the Compiler directives to ensure that they are processed in the order you require.

The Compiler processes directives specified on the command line from left to right. If a directive appears more than once, the Compiler uses the setting that it processed last for that directive.

The Compiler processes the directives according to the way you set them. It processes them in the following order:

  1. Project or file properties, set from within the IDE
  2. System-wide directives file cobol.dir
  3. $SET statements in the source code

In addition, you can set directives in a user directives file, which you specify with the USE directive. These directives are then processed when they are encountered.

For example, the above order means that a directive set in a $SET statement would override the setting for that directive in the IDE.

Previous Topic Next topic Print topic