uni_compute.c demonstrates processing of compute results for unichar and univarchar datatypes, and requires the unipubs2 database:
It sends a query to the server using a language command.
It processes the results using the standard ct_results while loop.
It binds the column values to program variables.
It fetches and displays in the standard ct_fetch while loop.
For instructions on installing the unipubs2 database, see the README file in %SYBASE%\%SYBASE_OCS%\sample\ctlib.