Setting Compiler directives on individual files

Files in your project inherit their properties from those set at the project level. You can specify directives on individual files that override any set at the project level.

Files that are part of a project

To set directives on individual files in a project:

  1. In Solution Explorer, right-click the file in your project whose properties you want to change.
  2. Click Properties.
  3. Configure the file properties as required, then click OK.

Standalone files

Note: Setting directives for standalone files is only applicable to native COBOL projects.

Standalone files are files that are opened in the IDE without a project.

To specify Compiler directives for compiling standalone files in the IDE:

  1. Open a file in the editor using File > Open > File.

    When the file is opened, the editor shows an information task bar with some commands to help you locate an .idy file, review the default Compiler directives that will be used to compile the file or compile with the default directives specified in the IDE.

    You can specify or change the Compiler directives from two places:

    • Specify a Symbols file - click Browse for symbols in the information task bar to manually select the program's .idy file that will provide the directives and additional information about the file.
    • Modify the global IDE directives -click Edit standalone editing build directives.

      This opens the IDE settings for standalone files in Tools > Options > Micro Focus Tools > Standalone Editing > Build Directives.

    • Specify directives that only apply to the current file:
      • Either right-click in the editor, and click Compiler Options.
      • Or, open the file properties window (using F4) and check the Build Directives section. The directives you specify in this window only apply while the file is opened in the editor.