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 HP sample programs, you must change line 113 in sybopts.sh in the $SYBASE/$SYBASE_OCS/sample/esqlcob directory to:

nthread_hpux) SYSLIBS=" -lpthread -lrt -lm -lcl -ldld "

You must also change line 71 in sybopts.sh in the $SYBASE/$SYBASE_OCS/sample/esqlcob directory to:

COBOL="cob -t -x -L${SYBLIB}" ;

NoteThe sample programs fail to run if you do not make these changes.