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 Rocket 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 file in the Visual COBOL product documentation.