The sample programs are in %SYBASE%\%SYBASE_OCS%\sample\dblib, which contains:
Source code for the sample programs
Data files for the sample programs
Header files, including sybdbex.h
Create a backup copy of the contents of the directory
where the sample programs reside. Then, you can experiment with
the sample programs without affecting the integrity of the original
files.