Several sample programs are provided that demonstrate the use of DB-library routines and their functionality. These samples are available in the following directory:
$SYBASE/$SYBASE_OCS/sample/dblibrary on UNIX
%SYBASE%\%SYBASE_OCS%\sample\dblib on Windows
See the Open Client and Open Server Programmers Supplement for your platform.