In this session you use CICS Option and Host Compatibility Option together.
You need to have read the chapter Start Here for the Tutorials and worked through the first session, Using Mainframe Express before you do this session. You also need to have worked through the sessions CICS Applications and DB2 Applications (Host Compatibility Option)
You need to have installed the CICS and Host Compatibility Options to do this session.
We assume you are familiar with CICS and DB2 on a mainframe.
You must also have IBM's DB2 Universal Database system installed. If you have DB2 V6 or later, you also need to install the IBM DB2 Software Development Kit (SDK). From V7 the SDK is called the Application Development Client.
This session shows you how to get an application that includes CICS and DB2 working on your PC, using CICS Option and Host Compatibility Option.
This session uses the same demo application as the chapter DB2 Applications (Host Compatibility Option). It uses the DB2DEMO database that you created in that session.
If you installed both SQL Option and Host Compatibility Option, ensure Host Compatibility Option is active, as described in the section Preparation in the chapter DB2 Applications (Host Compatibility Option).
In this session you:
To create the project:
You now get a page asking which of the installed options this project uses.
Because you have said this project uses CICS, you get the pages that relate to CICS.
Because you have said this project uses SQL, and you installed Host Compatibility Option (rather than SQL Option), you now get a dialog box asking the name of the DB2 database.
To add your files to the project:
The files are added to the project.
To build the project:
The build finishes with "Build finished with no errors".
To define CICS transactions for the project's programs:
|HCDC||HCODB2C||CICS program to read DB2 database|
To run the application:
The Application Output window appears, emulating a 3270 terminal. Messages appear, showing the application starting up, then the application displays its output.
Hide the Application Output window.
You can close DB2 if you wish.
Close the project. If you want to take a break before going on to the next session, you can close Mainframe Express.
Return to the Tutorials Map in the chapter Start Here for the Tutorials and choose which session to go on to next, depending on your interests.
Comments on the books? Click Send Us Comments.
Copyright © 2001 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.