Entering content frame

This graphic is explained in the accompanying text Example: Executing an Application Program Locate the document in its SAP Library structure

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.

Note

To test the newly installed precompiler, you can use the SAP DB test database at http://www.sapdb.org.

After you install the package (5 KB), you have a database instance called TST, and the user TEST with the password TEST.

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