The sample programs are located in $SYBASE/$SYBASE_OCS/sample/esqlc.
This directory includes:
Source code for the sample programs.
The makefile provided to build the samples. Use the makefile as a starting point for your own Embedded SQL applications.
The samples header file, sybsqlex.h.
The README file, containing instructions for building, executing, and testing the samples.
Set execute permission on the sybopts.sh file for the file’s owner:
chmod u+x sybopts.sh
Before compiling and running the sample programs, copy the contents of $SYBASE/$SYBASE_OCS/sample/esqlc into a working directory, where you can experiment with the sample programs without affecting the integrity of the original files.