Entering content frame

 Example: Executing an Application Program 

You want to execute an application program, test, that you have translated with the C/C++ Precompiler.

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.

In a Bash shell you can, for example, execute the following command:

export SQLOPT="-d TST -u TEST,TEST"

The result of this is that your application program uses, at runtime, the database instance TST and the user TEST with the password TEST.

 

Leaving content frame