SQL Preprocessor


The SQL preprocessor translates ANSI embedded SQL statements into CQL++ function calls. The preprocessor operators on files with the extension pc and outputs files with the extension C. For DOS and other systems where case is insignificant in filenames, the extension cpp or cxx is usually used for C++ files. The preprocessor is an executable module called pp (pp.exe for DOS.). The source file is an ordinary C++ (or C) source file with ANSI embedded SQL statements. These are standard SQL statements, preceeded by EXEC SQL and followed by a semicolon. Details about syntax specific to embedded SQL are provided in the SQL Language description.