BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
yatinrao
Obsidian | Level 7

Hello

 

Has anyone connected to db2 9.7 from SAS Viya 3.4?  I am trying to connect from data explorer GUI from environment Manager .

I can connect but can't see the list of tables.  As per excellent blog by Roberto Meléndez , Isql connectivity works perfectly 

 

what is the significance of catalog and and schema options? are they needed 

I tried to specify my schema and also sysibm.systables as catalog but will not list tables or view 

 

I also need to specify dm_unicode=utf-16 parameter for connection to work , not sure what is the significance 

 

Yatin 

1 ACCEPTED SOLUTION

Accepted Solutions
yatinrao
Obsidian | Level 7

Finally got the solution for this issue .

 

It had to do with which variation of the installed 9.7 cli driver was used by unixODBC 

isql works fine with the single threaded driver file libdb2.so.1 

for CAS server and sas which are multi threaded needed to use libdb2o.so.1 . Thanks to Sam Loflin from sas for figuring it out. 

as usual this is probably documented by IBM where only Watson can find 🙂

 

I suggest this and similar database connectivity should be added to SAS Viya documentation . I would also appreciate if someone can document the use of dm_unicode =UTF-16 during ODBC database connections 

View solution in original post

2 REPLIES 2
alexal
SAS Employee

@yatinrao ,


Did you see any errors in the CAS server log? You can find that log in /opt/sas/viya/config/var/log/cas/default directory.

yatinrao
Obsidian | Level 7

Finally got the solution for this issue .

 

It had to do with which variation of the installed 9.7 cli driver was used by unixODBC 

isql works fine with the single threaded driver file libdb2.so.1 

for CAS server and sas which are multi threaded needed to use libdb2o.so.1 . Thanks to Sam Loflin from sas for figuring it out. 

as usual this is probably documented by IBM where only Watson can find 🙂

 

I suggest this and similar database connectivity should be added to SAS Viya documentation . I would also appreciate if someone can document the use of dm_unicode =UTF-16 during ODBC database connections 

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1377 views
  • 0 likes
  • 2 in conversation