All directives specified within the current build configuration are used when a project builds. Native COBOL projects may
have more than one build configuration; you can set directives within any of the build configurations, but only ones set in
the current one are used at build time.
- Select the required project, and then on the
Project menu, select
Properties.
- Select
.
- For native COBOL projects only, click the name of the active build configuration in the right-hand pane, and select the required
configuration from the list displayed.
The name of the configuration being edited is displayed at the top of the right-hand pane as you select the different sections.
Managed COBOL projects only allow one build configuration, and so build configuration names are not required.
- In the left-hand pane, select one or more of the appropriate options:
- For non-preprocessor directives:
-
- Click
COBOL.
- Click
Enable configuration specific settings.
- Select the menu option, as appropriate; most will equate to a Compiler directive.
- For any additional directives that need setting, in the
Additional directives value cell, click
and use the
Additional directives dialog box to specify the directives. Separate each directive with a space. .
- For SQL preprocessor directives:
- This option enables you to configure an SQL preprocessor and its directives.
- Click
.
- Click
Enable configuration specific settings.
- If not already enabled at the project settings level, check
Use SQL Preprocessor, and then from the
Preprocessor Type drop-down list, choose the appropriate preprocessor.
- On the
Directives grid, complete the
Value field for each directive you want to set, and then click
Apply.
The SQL Compiler directives you have selected appear in the
SQL Directives text box.
- For other preprocessor directives
- This option enables you to configure other, non-SQL preprocessors and their directives.
- Click
.
- Click
Enable configuration specific settings.
Any preprocessors already enabled at the project settings level are displayed.
- Use the options to install and configure existing or new preprocessors, including setting the directives (Edit), and setting the order in which the preprocessors are stacked (Up/Down).
- Click
Apply
- Click
Apply and Close.
Remember: These settings are only used during a build if the build configuration is the active one.