To run the Embedded SQL/COBOL sample programs, set these environment variables:
SYBASE environment variable to the path of the Sybase installation directory (if it has not already been set).
SYBASE_OCS environment variable to the home directory of Open Client and Open Server products. For example, OCS-15_0 is the home directory of 15.0 version of the Open Client and Open Server products.
You need to access an Adaptive Server on which the pubs2 sample database is installed. Refer to the Adaptive Server Enterprise Installation Guide for information on installing the pubs2 database.
Before you precompile the programs, replace the user name and password with values that are valid for your Adaptive Server. Comments in the programs show where you should make the changes.
Before the sample programs produce any results, you
may need to press Return.