To run DB-Library applications, including the sample programs, you must:
Set the following environment variables, which are described in Appendix B, “Environment Variables”:
SYBASE
SYBASE_OCS
DSQUERY
SYBPLATFORM
Platform-specific library path variable
Be able to connect to Adaptive Server database. Refer to the Open Client and Open Server Configuration Guide for UNIX for information about connecting to Adaptive Server database.
Read the README file in each product directory under $SYBASE/$SYBASE_OCS/sample/dblibrary. Complete instructions for running the samples are given in the README file.
Set execute permission on the sybopts.sh file for the file’s owner:
chmod u+x sybopts.sh
See the following sections for descriptions and additional requirements of the individual sample programs.