To run DB-Library applications, including the sample programs, you must:
Set these 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 an Adaptive Server database. See the Open Client Configuration Guide for Apple Mac OS X.
Read the README file in each product directory under $SYBASE/$SYBASE_OCS/sample/dblibrary. Complete instructions for running the samples are in the README file.
Set execute permission on the sybopts.sh file for the file’s owner:
chmod u+x sybopts.sh