Before you use the Open Server examples:
Set the SYBASE environment variable to the path of the Sybase release directory (if it has not already been set).
Set the DSLISTEN environment variable to your server’s name.
Use 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.