ContentsIndexPreviousNext

2.12.2.2 Calling the AcuSQL Pre-compiler

The AcuSQL pre-compiler is called through the general preprocessor interface via the "-Pg" option. The following additional "-P" options may be used, but they must be placed in the command line following the name of the pre-compiler's executable file:

-Pc directs the pre-compiler to connect to and use the database engine to perform SQL syntax checking. See AcuSQL User's Guide for details.

-Pd dataset is used in conjunction with the "-Pc" option and must be followed by the name of the dataset to use. See AcuSQL User's Guide for details.

-Pi dir specifies the path that the pre-compiler will search to locate files named in ESQL INCLUDE statements. See AcuSQL User's Guide for details.

-Pk DB2 instructs the pre-compiler to use DB2 reserved word list.

-Pk EXT instructs the pre-compiler to use EXT reserved word list.

-Pp password is used in conjunction with the "-Pc" option and must be followed by the password that matches the username specified by the "-Pu" switch or by the ACUSQL_USER environment variable.

-Pr directs the pre-compiler to perform relaxed syntax checking. See AcuSQL User's Guide for details.

-Pu username is used in conjunction with the "-Pc" option and must be followed by the username of an authorized database user.


Note: When the AcuSQL pre-compiler is called by the compiler along with other preprocessors, "-P" options other than those specified above are not recognized and should not be used. See the AcuSQL User's Guide for a comprehensive list and descriptions of the switches available for invoking the pre-compiler from the ACUCOBOL-GT command line.