Assembler, CICS, IMS, DB2 (Host Compatibility Option) | IMS and DB2 (Host Compatibility Option) |
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. Note that Setup will only have offered you the option to install Host Compatibility Option if you ran it with the /hco command line parameter. Otherwise it will have offered SQL Option instead.
We assume you are familiar with CICS and DB2 on a mainframe.
You must also have IBM's DB2 Universal Database system installed.
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.
db2start
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:
Transaction ID | Program | Description |
---|---|---|
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.
Copyright © 1999 MERANT International Limited. All rights reserved.
This document and the proprietary marks and names
used herein are protected by international law.
Assembler, CICS, IMS, DB2 (Host Compatibility Option) | IMS and DB2 (Host Compatibility Option) |