Files and folders in your project inherit their properties from those set at the project level, and the build configuration level. For native COBOL projects, you can specify directives on individual folders or files that override any set at the project level and build configuration level .
To set directives on folders orindividual files in a project:
The Properties for folder/program-name dialog box is displayed.
The properties are displayed in the right-hand pane.
and type the directives to be used when compiling this file in the
Additional directives dialog box. Separate each directive with a space.
To guarantee that a directive set in a project or build configuration does not apply to a particular file, you must explicitly specify NO<DIRECTIVE> (for example, NOLOCALSOURCEFORMAT or NODATAMAP).
The SQL compiler directives you have selected appear in the SQL Directives text box.
Standalone files are files that are opened in the IDE without a project.
When compiling a standalone COBOL program, the IDE first searches for the program's symbols file (.idy) which includes the Compiler directives to use. It searches for the file either in the location of the COBOL program or in any directory specified in Window > Preferences > Micro Focus > COBOL > Standalone Files > Program Symbols (.IDY). If no program symbols file is found, the IDE uses the Compiler directives specified on the Compile properties page in Window > Preferences > Micro Focus > COBOL > Standalone Files.
To specify Compiler directives for compiling standalone files in the IDE:
For example, to specify the locations of any copybooks used in the standalone file when the copybooks are not in the same location, set the COPYPATH Compiler directive, COPYPATH(<location1>;<location2>;...).
If you have changed these directives, to reset them to the default values, click Restore Defaults.
(Display a compiler directives summary inside the COBOL editor). This option toggles on/off a 2-line summary at the bottom of the editor, detailing all directives currently set for the
file. If this option is not displayed, click
, and then select
Show compiler directives summary in editor. You can also set the preferred background color for this summary by selecting the current background color, shown in this
section, and selecting a new one from the palette.