Hello Joachim
I have no idea which excatly version of DB2 our costumer is using. He has a few dfifferent enviroments with different servers. And so far as I know, no infos in db2diag. For me, I have found a solution to connect to DB2 without catalog. The connection string can include the server name and port. An example:
Driver={IBM DB2 ODBC DRIVER};Database=DBNAME;Hostname=db2servername;Port=50000;Protocol=TCPIP;Uid=UID;Pwd=password
will work under windows. The bad news: On Linux it will not work without a few changes. The good news, I could use the windows code under Linux, so it will run now.
My curses, which I have expelled while reading the Linux code, I'll leave that aside.
I will inform here, when I have a feedback from our costumer.
If you are looking for the classes, start with AbtIbmCliDatabaseConnection, AbtIbmCliDatabaseManager