In a heterogeneous environment that uses applications built for different versions of SDK, you must explicitly set a path for each version at the Command Prompt window.
In the following example, applications using the 12.5.x products are installed in the d:\ocs-1251 directory, and applications using the 15.5 products are installed in the d:\ocs-150 directory:
To use SDK 12.5.x, open a Command Prompt window and set the SYBASE and SYBASE_OCS environment variables to the 12.5.x directory. For example:
set SYBASE=D:\ocs-1251 set SYBASE_OCS=OCS-12_5
In the same Command Prompt window, set the PATH environment variable to the 12.5.x directory.
On Microsoft Windows x86 32-bit:
set PATH=%SYBASE%\%SYBASE_OCS%\bin;%SYBASE%\%SYBASE_OCS%\dll; %SYBASE%\%SYBASE_OCS%\lib3p;%PATH%
On Microsoft Windows x86-64 64-bit:
set PATH=%SYBASE%\%SYBASE_OCS%\bin;%SYBASE%\%SYBASE_OCS%\dll; %SYBASE%\%SYBASE_OCS%\lib3p64;%SYBASE%\%SYBASE_OCS%\lib3p;%PATH%
To use SDK 15.5, open another Command Prompt window and set the SYBASE and SYBASE_OCS environment variables to the 15.5 directory. For example:
set SYBASE=D:\ocs-150 set SYBASE_OCS=OCS-15_0
In the same Command Prompt window, set the PATH environment variable. For example:
On Microsoft Windows x86 32-bit:
set PATH=%SYBASE%\%SYBASE_OCS%\bin;%SYBASE%\%SYBASE_OCS%\dll; %SYBASE%\%SYBASE_OCS%\lib3p;%PATH%
On Microsoft Windows x86-64 64-bit:
set PATH=%SYBASE%\%SYBASE_OCS%\bin;%SYBASE%\%SYBASE_OCS%\dll; %SYBASE%\%SYBASE_OCS%\lib3p64;%SYBASE%\%SYBASE_OCS%\lib3p;%PATH%
Although you must install different versions in separate directories, you can maintain a single sql.ini file by explicitly passing the address file name to each application, for example:
isql -P -Usa -Sconnect50 -ID:\ocs-150\ini\sql.ini