In this session you use IMS 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 IMS Applications and DB2 Applications (Host Compatibility Option)
You need to have installed the IMS and Host Compatibility Options to do this session.
We assume you are familiar with IMS 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 IMS and DB2 working on your PC, using IMS 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 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 be compatible with IBM DB2 V6 and later, the Host Compatibility Option in this version of Mainframe Express flags as an error any host variable reference that does not have a colon. References in this demo do not have colons. This was acceptable to earlier versions of Host Compatibility Option designed to be compatible with IBM DB2 V5 and earlier.
You can ensure the demo compiles cleanly by setting a directive:
This makes Host Compatibility Option accept host variables without colons, as earlier versions did.
To build the project:
The build finishes with "Build finished with no errors".
To define IMS transactions for the project's programs:
The right-hand pane now lists all the transactions in the application. Initially, there are none.
The Transaction Codes dialog box appears.
|Process Limit Count||99|
|Maximum seg no.||99|
An entry for transaction HCODEMO appears in the list in the right-hand pane.
To run the application:
The Application Output window appears. The application displays its output there.
In the following, the Application Output window must be selected, so that keystrokes are directed to it and not to some other window. It should be automatically selected when it appears, but if in doubt click in it with your mouse.
This exits from the transaction, and the Application Output window shows a screen with a cursor and a message saying HCODEMO has ended.
This exits from IMS. The Application Output window is cleared.
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.