Build, debug, and run a COBOL Db2 application
Learn how to build, debug, and run a COBOL Db2® application.
Learning objectives
Learn how to do the following tasks:- Create a database table
- Prepare and build a Db2 application
- Debug and run the Db2 application
Time required
This tutorial takes approximately 60 minutes to finish. If you explore other concepts that are related to this tutorial, it can take longer to complete.Skill level
AdvancedAudience
COBOL Db2 programmersSystem requirements
- Developer for z/OS®
- Db2 for z/OS
Prerequisites
Before you complete the lessons that are described in this tutorial, you must do the following tasks:- Define and connect to a z/OS system by using the Remote System Explorer.
- Create a z/OS project and MVS subproject in the z/OS Projects view.
You must obtain the following information from your database
administrator:
- Location: The name of the database location. You would see this name if you were to look at the entries in the SYSIBM.LOCATIONS table.
- Host: The IP address of the z/OS system to which you are connecting.
- Port number: The port that is used for the JDBC connection to the database.
- Create the database table
Learn how to create a sample database table for your COBOL application. - Prepare and build the Db2 application
Learn how to create and build a sample COBOL Db2 application. With your database table created and the sample data inserted, you are now ready to create and build a COBOL program that accesses the data. - Debug and run the Db2 application
Learn how to debug and run the Db2 application with generated JCL. This module provides instructions for two methods for debugging and running the program: in batch mode and in TSO mode.