CS_SYBASE_HOME

The CS_SYBASE_HOME property specifies the name and path to an alternate Sybase home directory and overrides the environment variable $SYBASE (%SYBASE% for Windows).

CS_SYBASE_HOME must be set before allocating a CS-Library context because the allocation of a context requires a valid Sybase home directory from which it will be set up. This means that CS_SYBASE_HOME must be set before calling cs_ctx_alloc() or cs_ctx_global(). cs_config() has to be invoked with a NULL context to set CS_SYBASE_HOME.

Example

ret = cs_config(NULL, CS_SET, CS_SYBASE_HOME,
"/work/NewSybase", CS_NULLTERM, NULL);

You can also use the isql and bcp utilities to specify an alternate Sybase home directory. For details, see “isql and bcp enhancement”.