Before you use the Open Client examples:
Set the SYBASE environment variable to the path of the Sybase release directory (if it has not already been set).
Set the DSQUERY environment variable to the server name (server_name) to which you want to connect.
Use makefile to produce a sample executable named example_name.
For detailed information regarding configuration of your environment and variables, refer to the Open Client and Open Server Configuration Guide for Microsoft Windows.