The uni_compute.c sample program demonstrates how to process compute results. It is a modification of the compute.c sample program for the unichar and univarchar datatypes and requires the unipubs2 database: It:
Sends a query to the server using a language command.
Processes the results using the standard ct_results loop.
Binds the column values to program variables.
Fetches the rows using ct_fetch loop and displays them.
For instructions on installing the unipubs2 database, see the README file in $SYBASE/$SYBASE_OCS/sample/ctlibrary.