Thank you for the response Ankur.
I changed the LIB into MSS since we are using 11.3.0.7 and the lookup table as schema.table name in "ID". But I'm still getting the same error as
" Column: CUST_LAST_NAME_X: IOQDP0558E: Failed to connect to the database"
Is there anything else I'm missing here ?
Also , I need some clarity on the "CONN" parameter in LUA. Is this the connection string that we use to create a connection to that server or is it the DB name ? I have mentioned the connection string here.
------------------------------
Hariharan Paramasivam
------------------------------
Original Message:
Sent: Tue February 18, 2020 12:58 AM
From: Ankur Agrawal
Subject: Optim LUA -error
Hello Hari,
I see couple of issues with the code
- tparm = tparm .. 'lib=DB2LUW,' -- this is referring to DB2 LUW, use "MSS" for SQLServer
- tparm = tparm .. 'id="optimdata.soptimdataowner.lookname",' -- this parameter is supposed to include only schema.tablename, it seems you are including the Optim DB Alias name as well.
Please refer to below link for working example on Oracle
https://www.ibm.com/support/knowledgecenter/en/SSMLQ4_11.3.0/com.ibm.nex.mod.doc/topics/opmod-c--lookup_providers.html
------------------------------
Ankur Agrawal
------------------------------