To run the Client-Library sample programs, you must:
Be able to connect to an Adaptive Server®. Refer to the Open Client and Open Server Configuration Guide for UNIX for information about connecting to an Adaptive Server. Also, see the descriptions of the individual samples for the required Adaptive Server version level.
Set the following environment variables, which are described in Appendix B, “Environment Variables”:
SYBASE
SYBASE_OCS
DSQUERY
SYBPLATFORM
Platform-specific library path variable
Read the README file available in $SYBASE/$SYBASE_OCS/sample/ctlibrary directory for complete instructions on running the sample programs.