Click New on the Connection menu.

Select DB2.

Connection name: assign a name.
Server name: assign the service name of your DB2 database Server.
Port: Define if the port number of your DB2 database Server.
Database name: enter the name of the DB2 database.
User: enter the user id
Password: enter the database password
Enable Offline mode: Learn more here
Select User Groups who can view the Connection: Assign user groups with privileges to open objects from this connection.
Click Ok to establish the connection.
Important!
For full data connection functionality to DB2©it is recommended that the IBM © Data Server Runtime Client 9.5 driver is installed on your system.
Please download and install from here:
http://www.dbxtra.com/Download/Drivers/IBM Data Server Client.exe
Related
Connect to FoxPro - Database Container