Setting up and verifying your environment

Set up the environment

Sybase provides scripts to set the following variables, which DirectConnect for z/OS Option needs to run:

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

NoteYour 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

NoteFor UNIX: $SYBASE, $SYBASE_ECON, and $SYBASE_OCS will be expanded to their actual values.

Verify that the environment script ran successfully

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.