Troubleshooting
Problem
A DataStage job on Unix using any of the ODBC stages fails with a "DSN name not found" error. Examination of .odbc.ini file shows the DSN name to be present and defined.
Symptom
Messages such as
Message: ss_PROS_CNTL:
The connector could not establish a connection to data source UAT using user dsadmuat.
Message: ss_PROS_CNTL: ODBC function "SQLConnect" reported: SQLSTATE = IM002: Native Error Code = 0:
Msg = [DataDirect][ODBC lib] Data source name not found and no default driver specified (CC_OdbcConnection::connect, file CC_OdbcConnection.cpp, line 578)
Cause
There is a "[" in a preceding DSN Password field
[MYDB]
Driver=/opt/IBM/InformationServer/Server/branded_odbc/lib/VMmsss00.so
Description=DataDirect SQL Server Wire Protocol driver
Database=MYDB
LogonID=xyz
Password=abc[def
Address=nn.nn.nnn.nn,1433
QuotedId=No
AnsiNPW=No
EncryptionMethod=1
Environment
Unix with Progress Data Direct driver manager
Diagnosing The Problem
Temporarily remove the offending DSN and re test
Resolving The Problem
There is no need to hard code the user LogonID and Password entries, they can always be specified in your DataStage job. Having passwords hard coded in the .odbc.ini may also be against in house security policies.
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21985582