iqsqlpp SQL Preprocessor Utility

The Sybase IQ SQL preprocessor utility iqsqlpp translates the SQL statements in an input file (.sqc) into C language source that is put into an output file (.c).

Embedded SQL is a database programming interface for the C and C++ programming languages. Embedded SQL consists of SQL statements intermixed with (embedded in) C or C++ source code. These SQL statements are translated by an SQL preprocessor into C or C++ source code, which you then compile.

Syntax

iqsqlpp [ options ] <in filename > [<out filename> ]

Parameters

This table lists the options available for the iqsqlpp utility.

iqsqlpp options

Option

Description

-d

Favor data size.

-e <level>

Flag nonconforming SQL syntax as an error.

The allowed values of <level> are:
  • c03– Flag syntax that is not core SQL/2003 syntax

  • p03 – Flag syntax that is not full SQL/2003 syntax

  • c99 – Flag syntax that is not core SQL/1999 syntax

  • p99 – Flag syntax that is not full SQL/1999 syntax

  • e92 – Flag syntax that is not entry-level SQL/1992 syntax

  • i92 – Flag syntax that is not intermediate-level SQL/1992 syntax

  • f92 – Flag syntax that is not full-SQL/1992 syntax

  • t – Flag syntax that is not full-SQL/1992 syntax

  • u – Flag non-standard host variable types

The following are also supported for compatibility with previous versions: e (for entry-level SQL92), i, (for intermediate-level SQL92), f (for full SQL92), and w (to allow all supported syntax).

-h <width>

Limit the maximum line length of output.

-k

Include user declaration of SQLCODE.

-n

Line numbers.

-o <O/S spec>

Target operating system specification (WINDOWS, WINNT or UNIX).

-q

Quiet mode—do not print banner.

-r-

Generate reentrant code.

-s <len>

Maximum string constant length for the compiler.

-w <level>

Flag nonconforming SQL syntax as a warning.

The allowed values of <level> are:
  • c03– Flag syntax that is not core SQL/2003 syntax

  • p03 – Flag syntax that is not full SQL/2003 syntax

  • c99 – Flag syntax that is not core SQL/1999 syntax

  • p99 – Flag syntax that is not full SQL/1999 syntax

  • e92 – Flag syntax that is not entry-level SQL/1992 syntax

  • i92 – Flag syntax that is not intermediate-level SQL/1992 syntax

  • f92 – Flag syntax that is not full-SQL/1992 syntax

  • t – Flag syntax that is not full-SQL/1992 syntax

  • u – Flag non-standard host variable types

-x

Change multibyte SQL strings to escape sequences.

-z <cs>

Specify the collation sequence. For a list of recommended collation sequences, enter iqinit -l at a command prompt.

Usage

The SQL preprocessor processes a C or C++ program containing Embedded SQL before the compiler is run. iqsqlpp translates the SQL statements in the input file sql-filename into C language source that is put into the output-filename. The normal extension for source programs with Embedded SQL is .sqc. The default output file name is the sql-filename with an extension of .c. If the sql-filename has a .c extension, the default output file name extension is .CC.

Options