You have written a source code file test.cpc.
Use
the command
cpc –d DB –u
Jones,secret test
to generate the file test.o. This uses the database instance DB with the user Jones and the password secret.
Use
the command
cpclnk test
to link the file with the runtime library and generate an executable program.
If you want a trace file to be written when the test program is executed, set the environment variable SQLOPT to -X. The corresponding command in a Bash shell is as follows:
export SQLOPT=-X
The trace file test.pct is written when the test program is executed. This file is located in the same directory as the test program.