Sybase provides scripts to set the following variables, which DirectConnect for z/OS Option needs to run:
SYBASE
SYBASE_ECON
SYBASE_OCS
PATH (Windows), SHLIB_PATH (HP-UX), LIBPATH (AIX), LD_LIBRARY_PATH (HP Itanium, Linux, Sun Solaris)
Set the environment variables from a command line prompt by running one of the following environment scripts, as appropriate for your platform. For Windows, use a DOS command session, DC_SYBASE.bat on Windows.
For AIX, HP Itanium, HP-UX, and Sun Solaris using SNA LU 6.2 protocol, you must locate the following line in the environment script that begins as follows (this example is for Sun Solaris):
set LD_LIBRARY_PATH.........
Add the following to the end of this line:
/opt/sna/lib:$LD_LIBRARY__PATH
Your SNA location may vary.
To verify that the environment script ran successfully on UNIX, execute the following commands:
echo $SYBASE
The response should match the home directory for your installation.
echo $SYBASE_ECON
The response should be .. (parent directory)
echo $SYBASE_OCS
The response should be OCS-15-0.
echo $SHLIB_PATH
This variable (shown for HP) should equal the following:
$SYBASE/SYBASE_ECON/lib
For UNIX: $SYBASE, $SYBASE_ECON,
and $SYBASE_OCS will be expanded to their actual
values.
To verify that the environment script ran successfully on Windows, execute this in a DOS command window:
echo %SYBASE%
The response should match the home directory for your installation.
echo %SYBASE_ECON%
The response should be .. (parent directory)
echo %SYBASE_OCS%
The response should be OCS-15-0.
echo %PATH%
This variable should equal the following:
%SYBASE%\SYBASE_ECON\lib
For Windows, keep your DOS command line session active to create the DirectConnect server.