In this session you take an application that includes CICS, IMS, and DB2 and contains Assembler programs and get it working on Mainframe Express.
SQL Option and Host Compatibility Option are alternative facilities for handling a DB2 application. In this session you use Host Compatibility Option. See the chapter Assembler, CICS, IMS, DB2 (SQL Option) for a similar session using SQL Option.
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 first session on each of the Options used.
You need to have installed the Assembler, CICS, IMS and Host Compatibility Options to do this session.
We assume you are familiar with CICS, IMS, DB2, and Assembler 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.
The demo application used in this session is a simple application that you might have downloaded from a mainframe. In this session, you get it working on your PC. It consists of several COBOL programs, one Assembler program, a BMS file, a DB2 database, and an IMS database. You create some CICS transactions to run it. The application is a suite of transactions to maintain employee records.
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 page asking the name of the DB2 database.
To add your files to the project:
The files are added to the project.
You need to create the DB2 database:
The Create Database dialog box appears.
You use the supplied DDL file to add the table and data.
The DDL Processor Tool appears. It auto-connects to the database ACIHSAMP specified in the project.
This sets the DDL File field to the name of this file.
We want the BMS compiler to recognize certain features recognized by the SDF BMS compiler on the mainframe.
SDF features are used in the BMS mapset used in this session.
To build the project:
The build finishes with "Build finished with no errors".
You run the IMS Database Utility with the supplied .dbu file to create an IMS database for use by this application:
This displays a list of the IMS databases in the project. There is one - CICSDLID.
The list disappears. The Database field on the IMSDBU window is now set to CICSDLID.
A screen appears where you can specify details of the Load operation.
Messages appear, showing the Load starting and successfully completing.
To define CICS transactions for the project's programs:
|CDI1||CICSDLI1||Program to handle the menu|
|CDI4||CICSDLI4||Program to handle listings|
|CDI5||CICSDLI5||Program to handle updates|
|CDI6||CICSDLI6||Program to handle displays.|
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 first map.
We will make a simple change to one employee record.
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.