The sample programs demonstrate specific DB-Library/C functionality. These programs are designed as guides for application programmers, not as DB-Library/C training aids. Before you attempt to use the sample programs, read the descriptions at the top of each source file and examine the source code.
These simplified programs are not intended for use in
a production environment. Programs written for a production environment
need additional error-handling and special case-handling code.
These are the steps required to run DB-Library applications:
Set the DSQUERY environment variable to the server name (server_name) to which you want to connect.
Set the SYBASE environment variable to the path of the Sybase installation directory (if it has not already been set).
Set the 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.5 version of the Open Client and Open Server products.
Use make in conjunction with the provided makefile to produce a sample executable named example name.
See the individual sample programs and the README file for additional requirements.