To configure how the IDE determines the Compiler directives of files

The Determine Directives context menu command in Solution Explorer and in the Project Details window causes the IDE to scan the files in your project and set any required Compiler directives. You can configure this behavior from the IDE preferences.
  1. Click Tools > Options.
  2. Expand Micro Focus.
  3. Click Directives > COBOL.
  4. Ensure Show selection dialog after determination is checked, if you want to approve the setting of Compiler directives after a directives scan.
  5. Ensure Determine directives of files is checked.
  6. To determine the COBOL dialect of the files and set the COBOL DIALECT directive, check Set the DIALECT directive on files.

    The dialect directive is set only if it differs from the directive set on project level.

  7. Check Set SQL directives on files containing EXEC SQL, if required.

    Click VSIDE201209IMG-low.png and choose the SQL directives to set if they occur in the file.

    Note: You must select the directives you require, as well as check the box or no directives are set on the files.
  8. Check Unset SQL directives on files that do not contain EXEC SQL, if required.

    When SQL directives are unset on a file, they override any SQL setting on the project.

  9. Check Set EXECDLI directive on files containing EXEC DLI, if required.

    The EXECDLI directive is set on files that contain an EXEC CICS statement. If the directive required together with its options differs from the directive set on the project, the required directive is set on the file.

  10. Check Unset EXECDLI directive on files that do not contain EXEC DLI when DLI directives are enabled at the project level. The directives are then not applied at compile time, regardless of any EXEC DLI directives set on the project.
  11. Check Set CICSECM directive on files containing EXEC CICS, if required.

    The CICSECM() directive is set on files that contain an EXEC CICS statement.

  12. Check Set NOCICS directive on files that do not contain EXEC CICS, if required.

    When this directive is set on a file, it overrides any CICSECM directive set on the project.

Tip:
  • The status bar identifies the file currently being scanned for directives
  • The output window shows the directives being set on each file