Miguel ,
Are you using DB2 Connect by anychance to connect to IBM i ?
If so , you need to check the Licence file in the correct path : https://www.ibm.com/support/pages/sql1598n-error-connecting-mainframe-db2-ibm-data-server-driver-even-though-db2-connect-license-file-exists-license-directory-install-path