Follow these steps, to connect to IBM DB2 database.
1. Click on New data source.
2. Go to More and select IBM DB2 database.
3. Type your server name and database name, port is by default.
4. Type any sql statements. (optional)
5. Enter username and password to signin the database. Click on sign in
6. Select required tables and fields residing in IBM DB2 database for creating your report and visualization.
7. Click on sheet.
Hope this helps you.