Embedded SQL/COBOL sample programs

The shared library path for compiling the sample programs must include $COBDIR/lib and $SYBASE/$SYBASE_OCS/lib. The path must also include $COBDIR/bin and $SYBASE/bin.

When compiling the sample programs with the DataDirect COBOL compiler, you must set the COBMODE environment variable to 32 for 32-bit builds, and to 64 for 64-bit builds.

To enable the IBM sample programs in threaded mode, add the lpthread flag to the SYSLIBS line in sybopts.sh in the $SYBASE/$SYBASE_OCS/sample/esqlcob directory:

nthread_rs6000) SYSLIBS=" -lpthread -lm" ;;