Copy the util.c and util.h programs to the directory where you are going to run the examples. More examples in ~db2d34/sqllib.
These examples were adapted from the DB2 sample programs, to run in the cscd34 database instance.  Create a table "ESTAF" with attributes: eid (int), description (char [20]), job (char[20]), years (int) and rating(int). Insert some tuples on the database, compile and run the examples using the shell script provided.


Example 1

Example 2

Example 3

Example 4

Example 5

Shell for precompiling, binding, and  compiling

util.c

util.h