Setting DB2 Background Syntax Checking Options

Before compiling a DB2 application, you can set options that determine the level at which the DB2 ECM preprocessor checks syntax in the background. To do this, click Tools > Options > Text Editor > Micro Focus COBOL > Advanced. From the Enable DB2 Background Syntax Checking drop-down list, select one of the following options:
No checking
The preprocessor does not connect to the DBMS and does not validate EXEC SQL statements; however, the preprocessor does check host variables.
This option sends all embedded SQL statements to the DBMS for validation, and requires a connection to the DBMS used by the program. Select this option for database providers that do not require SQL statement execution to perform validation.

See your Visual Studio documentation for information on setting properties.

Note: You can also set DB2 background syntax checking using the DB2 BGP compiler directive option.