IBM Db2 for z/OS connection
To access your data in Db2 for z/OS, create a connection asset for it.
Db2 for z/OS is an enterprise data server for IBM Z. It manages core business data across an enterprise and supports key business applications.
Supported versions
IBM DB2 11+ for z/OS
Prerequisite
This connection requires either an IBM Db2 Connect Unlimited Edition license certificate file on the Db2 for z/OS server or that you upload two JAR files to Cloud Pak for Data.
- These steps must be done on the Db2 for z/OS server: Obtain an IBM Db2 Connect Unlimited Edition license certificate file from IBM Db2 Connect: Pricing and Installing the IBM Data Server Driver for JDBC and SQLJ. For installation instructions, see Activating the license certificate file for Db2 Connect Unlimited Edition.
- The JAR files are
db2jcc_license_cisuz.jar
anddb2jcc4.jar
. The files must be uploaded by a Cloud Pak for Data administrator with the Administer platform permission. For information about obtaining the JAR files, see IBM Db2 Connect: Pricing and Installing the IBM Data Server Driver for JDBC and SQLJ.
Create a connection to Db2 for z/OS
To create the connection asset, you need these connection details:
- Hostname or IP address
- Port number
- Collection ID: The ID of the collections of packages to use
- Location: The unique name of the Db2 location you want to access
- Username and password
- SSL certificate (if required by the database server)
For Credentials and Certificates, you can use secrets if a vault is configured for the platform and the service supports vaults. For information, see Using secrets from vaults in connections.
Choose the method for creating a connection based on where you are in the platform
In a project Click Add to project > Connection. See Adding a connection to a project.
In a catalog
Click Add to catalog > Connection. See Adding a connection asset to a catalog.
In a deployment space
Click Add to space > Connection. See Adding connections to a deployment space.
In the Platform assets catalog
Click New connection. See Adding platform connections.
Next step: Add data assets from the connection
Where you can use this connection
You can use Db2 for z/OS connections in the following workspaces and tools:
Analytics projects
- DataStage (DataStage service)
- Metadata import (Watson Knowledge Catalog)
- Notebooks (Watson Studio). Use the insert-to-code function to get the connection credentials and load the data into a data structure. See Load data from data source connections.
- SPSS Modeler (SPSS Modeler service)
Catalogs
- Platform assets catalog
- Other catalogs (Watson Knowledge Catalog)
Data Virtualization service You can connect to this data source from Data Virtualization.
Restriction
For SPSS Modeler, you can use this connection only to import data. You cannot export data to this connection or to a Db2 for z/OS connected data asset.
Running SQL statements
To ensure that your SQL statements run correctly, refer to the Db2 for z/OS documentation for the correct syntax.
Learn more
IBM Db2 for z/OS documentation
Parent topic: Supported connections