It is crucial to the operation of Sybase products that you set the system environment variables correctly.
Set environment variables in the user’s environment by running the sybase.bat in the %SYBASE%|%SYBASE_ASE%|bin directory:
DSLISTEN – defines the name Adaptive Server uses to listen for client connections if no name is given during the Adaptive Server start-up. If DSLISTEN is not set, and no name is given during the Adaptive Server start-up, the Adaptive Server name defaults to the server name given at installation.
DSQUERY – defines the Adaptive Server name that client programs try to connect to if no Adaptive Server is specified with a command-line option. If DSQUERY is not set, and you do not supply the Adaptive Server name with a command-line option, clients attempt to connect to the server name given at installation.
SYBASE – defines the path of the Sybase installation directory. The installation program sets up the variable SYBASE to point to the release directory specified during installation.
SYBASE_ASE – defines the subdirectory directory of the Adaptive Server components.
SYBASE_OCS – defines the subdirectory to which the Open Client™ is set.
SYBASE_ FTS – defines the subdirectory for the full-text search components.
SYBASE_SYSAM – points to the license-management software directory.
LM_LICENSE_FILE – points to the license.dat file in the SYBASE_SYSAM/licenses/ directory.
PATH – specifies which directory paths to search for executables and dynamic link libraries (DLLs). The Sybase executables are in the bin%SYBASE%|product_name directory. The Sybase DLLs are in the SYSDLL directory. The installation program appends these paths to the current PATH environment variable.
WARNING! Keep all Sybase DLLs in the directories in which they were installed. To avoid possible confusion about current DLLs, do not keep multiple versions of Sybase DLLs on your machine.
TEMP – defines the location used by the installation program to write files temporarily during the installation process. The installation process frees the disk space after installation is completed.
CLASSPATH – defines the Adaptive Server plug-in location. The default location value is:c:\sybase\asep\monclass.zip; c:\sybase\asep\3pclass.zip
INCLUDE – specifies which directory to set to or append for Open Client.
LIB – is appended with lib directory for Open Client.