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; then expand Micro Focus COBOL Tools and click DB2 Background Syntax Checking. You can set the following options:
The precompiler does not connect to the DBMS and does not validate EXEC SQL statements; however, the precompiler 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.