DB2 application programs include SQL statements. In order to compile those programs, the SQL statements must be converted into language recognized by the compiler or assembler. The DB2 precompiler or a host-language compiler needs to be used to:
Replace the SQL statements in the source programs with compilable code
Create a database request module (DBRM), which communicates the SQL requests to DB2 during the bind process
After the source program has been precompiled, a load module is created, possibly one or more packages, and an application plan. Creating a load module involves compiling and link-editing the modified source code that is produced by the precompiler. Creating a package or an application plan, a process unique ...