Non-ILE SQL precompiler commands DB2® UDB Query Manager and SQL Development Kit includes
non-ILE precompiler commands for the following host languages: CRTSQLCBL (for
COBOL for iSeries™), CRTSQLPLI (for iSeries™ PL/I), and CRTSQLRPG (for
RPG III, which is part of RPG/400®).
ILE SQL precompiler commands
In the DB2® UDB Query Manager and SQL Development Kit,
the following ILE precompiler commands exist: CRTSQLCI, CRTSQLCPPI, CRTSQLCBLI,
and CRTSQLRPGI.
Set compiler options using the precompiler commands
The COMPILEOPT string is available on the precompiler command and on the SET OPTION statement to allow additional parameters to be used on the compiler command.
Bind an application that uses SQL
Before you can run your application program, a relationship between
the program and any specified tables and views must be established. This process
is called binding. The result of binding is an access plan.
Display SQL precompiler options
When the SQL application program is successfully compiled, the Display
Module (DSPMOD), the Display Program (DSPPGM),
or the Display Service Program (DSPSRVPGM) command can
be used to determine some of the options that were specified on the SQL precompile.
Run a program with embedded SQL
Running a host language program with embedded SQL statements, after the precompile and compile have been successfully done, is the same as running any host program.