Setting Common Compiler Directives with directives.mf

Use one or more common directive files, directives.mf, to set directives for compiling multiple applications written in one or more programming languages without having to specify all directives individually. Common directives files contain multiple directives that can be applied to multi-language applications at compile time, ensuring that a common set of directives is applied to multiple applications.

The directives.mf file format is supported in the Micro Focus COBOL extension, which includes code completion, Outline view, and diagnostic information.

Create a directives.mf file

Create a text file called directives.mf and follow the editorconfig style when writing the file. You can create multiple directives.mf files in different subdirectories. All directives files will be picked up by the Compiler and where an individual directive is defined in multiple locations the most recently compiled file will overwrite previous directives.

For information about how to write a directives.mf file, see Creating a directives.mf in the Micro Focus Visual COBOL or Micro Focus Enterprise Developer product documentation.