IBM Developer for z Systems version 16 now comes available with the new Db2 for z/OS tools, allowing you to work with Db2 data and SQL inside of IDz without the use of 3rd party plugins. This tutorial will guide you on how to create a connection to Db2 from inside IDz's Remote Systems view, then how to navigate to a table, and view table data.
Prerequisites:
To take advantage of this feature, the user needs:
Estimated time:
This process should take 5 minutes from start to finish.
Steps:
- Open IDz and specify a workspace. A workspace is a folder or directory on your computer that contains metadata (or data about data) around any customizations you have made to the IDz workbench
- Navigate to the Remote Systems view in the upper-right of the workbench. Find the LPAR connection on with your Db2 Database resides, right-click on it, and choose Connect.
- The Enter Password dialog will appear. Enter your TSO credentials and click OK.
- Once connected, click the expand arrow next to the LPAR connection you logged on to, then expand Db2 for z/OS, right-click on Db2 for z/OS Connections, and choose New > Db2 for z/OS Connection...
- This brings up the Properties for <yourLPAR> dialog. This dialog asks for your Db2 Database connection information. Enter the Location name and Port for your Db2 subsystem, then click Test Connection. If the test is successful, a pop up will appear and display "Connection Attempt Successful". Click OK, then Apply and Close on the previous dialog panel.
- With the new connection made, expand Db2 for z/OS Connections, then expand the new database connection, then Schemas, and find the schema that contains the table you want to view data on.
- Expand the schema, then right-click on the table and choose View Data. The data will appear in the Remote Systems Details view. With the data showing, you can use the Tool Bar icons to select columns to show, save table data to a CSV file, import/export column settings, or refresh data.
In this tutorial, you have created a connection to a Db2 database, connected, browsed the catalog, and viewed table data. To learn more, please consider attending the DevOps Distance Learning, a no-charge instructor-led training series.