Precompile and Bind

DB2 application programs include SQL statements. In order to compile these programs, the SQL statements must be converted into a 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, and possibly one or more packages and an application plan are created. 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 ...

Get DB2® Universal Database™ for OS/390™ v7.1 Application Certification Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.