IBM Data Server Client Packages Version 10.1

Building embedded SQL applications from the command line

There are different methods that you can use to build embedded SQL applications, such as by using build scripts or the command line. You can use the command line if you want to test build options before writing a script to automate the process.
Building embedded SQL applications from the command line involves the following steps:
  1. Precompile the application by issuing the PRECOMPILE command
  2. If you created a bind file, bind this file to a database to create an application package by issuing the BIND command.
  3. Compile the modified application source and the source files that do not contain embedded SQL to create an application object file (a .obj file).
  4. Link the application object files with the DB2® and host language libraries to create an executable program using the link command.