Using Server-Library sample programs

The sample programs demonstrate specific Server-Library/C functionality. These programs are designed as guides for application programmers, not as Server-Library/C training aids. Read the descriptions at the top of each source file and examine the source code before you attempt to use the sample programs.

NoteThese 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.

Before you use the Open Server sample programs:

  1. Set the SYBASE environment variable to the path of the Sybase release directory (if it has not already been set).

  2. 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.

  3. Set the DSLISTEN environment variable to your server’s name.

  4. Use make in conjunction with the provided makefile to produce a sample executable named example_name.

For detailed information regarding configuration of your environment and variables, see the Open Client and Open Server Configuration Guide for Microsoft Windows.