


The ACUSQL pre-compiler offers three modes of SQL syntax checking.
The first mode, specified with the "-Pk" switch, uses internal reserved word lists and syntax rules to check IBM DB2 SQL or ISO/ANSI SQL92.
The second mode, called "relaxed" mode, is enabled with the "-Pr" switch and provides only minimal syntax checking. It is intended for use with unspecified SQL variants.
The third mode establishes a direct connection to the target database engine and uses the engine to directly check the syntax. This option is specified with the "-Pc" switch. Note that for this mode to be effective your ODBC API middleware must support the return of syntax error messages (not all ODBC drivers do). Also note that during syntax verification it is possible that some error messages will be converted to warning messages. This is done, when possible, to prevent the compiler from aborting so that syntax checking can continue. The text of the warning message preserves the text of the error message.
AcuSQL pre-compiler switches are fully described in Section 3.2.2 Invoking the Pre-compiler From the ACUCOBOL-GT Command Line.
You can invoke the AcuSQL pre-compiler in either of two ways: from within the AcuBench workbench or on the ACUCOBOL-GT command line.
More:
3.2.1 Using AcuSQL From Within AcuBench
3.2.2 Invoking the Pre-compiler From the ACUCOBOL-GT Command Line