Inciando em Mainframe

Embed Size (px)

Citation preview

  • 8/10/2019 Inciando em Mainframe

    1/38

    Issue 1a, June 2004

  • 8/10/2019 Inciando em Mainframe

    2/38

    Copyright 2004 Micro Focus International Limited.All rights reserved.

    Micro Focus International Limited has made every effort to ensure that this book iscorrect and accurate, but reserves the right to make changes without notice at its solediscretion at any time. The software described in this document is supplied under alicense and may be used or copied only in accordance with the terms of such license,and in particular any warranty of fitness of Micro Focus software products for anyparticular purpose is expressly excluded and in no event will Micro Focus be liable forany consequential loss.

    Animator, COBOL Workbench, EnterpriseLink, Mainframe Express,Micro Focus, Net Express, REQL and Revolve are registered trademarks, andAAI, Analyzer, Application to Application Interface, AddPack, AppTrack,AssetMiner, CCI, DataConnect, Dialog System, EuroSmart, FixPack,LEVEL II COBOL, License Management Facility, License Server,Mainframe Access, Mainframe Manager, Micro Focus COBOL, Object COBOL,OpenESQL, Personal COBOL, Professional COBOL, Server Express,SmartFind, SmartFind Plus, SmartFix, SourceConnect, Toolbox, WebSync,and Xilerator are trademarks of Micro Focus International Limited. All other

    trademarks are the property of their respective owners.No part of this publication, with the exception of the software product userdocumentation contained on a CD-ROM, may be copied, photocopied, reproduced,transmitted, transcribed, or reduced to any electronic medium or machine-readableform without prior written consent of Micro Focus International Limited.

    Licensees may duplicate the software product user documentation contained on a CD-ROM, but only to the extent necessary to support the users authorized access to thesoftware under the license agreement. Any reproduction of the documentation,regardless of whether the documentation is reproduced in whole or in part, must be

    accompanied by this copyright statement in its entirety, without modification.

    U.S. GOVERNMENT RESTRICTED RIGHTS. It is acknowledged that the Software and theDocumentation were developed at private expense, that no part is in the publicdomain, and that the Software and Documentation are Commercial ComputerSoftware provided with RESTRICTED RIGHTS under Federal Acquisition Regulationsand agency supplements to them. Use, duplication or disclosure by the U.S.Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of TheRights in Technical Data and Computer Software clause at DFAR 252.227-7013 et. seq.or subparagraphs (c)(1) and (2) of the Commercial Computer Software RestrictedRights at FAR 52.227-19, as applicable. Contractor is Micro Focus, 9420 Key WestAvenue, Rockville, Maryland 20850. Rights are reserved under copyright laws of theUnited States with respect to unpublished portions of the Software.

    20040726122421

  • 8/10/2019 Inciando em Mainframe

    3/38

    Getting Started with Mainframe Express Enterprise Edition

    3

    Table of Contents

    About this Book. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

    1 Welcome! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

    Functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

    2 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

    Mainframe Express . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

    Analysis Option. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

    AppMaster Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12AppMaster Builder Customizer . . . . . . . . . . . . . . . . . . . . . . . . . . 13

    Component Generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

    3 Using Mainframe Express Enterprise Edition . . . . . 15

    The Application Maintenance Cycle . . . . . . . . . . . . . . . . . . . . . . . . . 15Traditional Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

    AppMaster Generation Maintenance . . . . . . . . . . . . . . . . . . . . . 20

    Legacy Extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24Using Component Generator . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

    4 New Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

    New Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29Benefits of Integration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

    Mainframe Express Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

    Workbench Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

    AppMaster Builder Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

    APS Users. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

    EnterpriseLink Component Generator Users . . . . . . . . . . . . . . . . . . 33

  • 8/10/2019 Inciando em Mainframe

    4/38

    Getting Started with Mainframe Express Enterprise Edition

    4

    A Send Us Comments . . . . . . . . . . . . . . . . . . . . . . . . . . 35

    To Send a Comment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

  • 8/10/2019 Inciando em Mainframe

    5/38

    Getting Started with Mainframe Express Enterprise Edition

    5

    About this Book

    This book is an overview of Mainframe Express Enterprise Edition. Youshould read it before any other Getting Startedbook included withMainframe Express Enterprise Edition.

  • 8/10/2019 Inciando em Mainframe

    6/38

    Getting Started with Mainframe Express Enterprise Edition

    6 About this Book

  • 8/10/2019 Inciando em Mainframe

    7/38

    Getting Started with Mainframe Express Enterprise Edition

    7

    1 Welcome!

    Welcome to Mainframe Express Enterprise Edition! Micro Focussunified environment for mainframe development significantly reducesrisks and costs, and offers improved business agility through extensionto J2EE, .Net and Web Services.

    Introduction

    Mainframe Express Enterprise Edition accelerates the transformation of

    legacy assets through a highly productive integrated environment formainframe application development. Hosted on the PC, it includescapabilities for generation, analysis, compilation, debugging and unittesting of your applications on workstations. It also enables you toexpose existing business transactions as JavaBeans, EnterpriseJavaBeans, .NET or Web services.

    Mainframe Express Enterprise Edition combines and integrates featuresavailable in separate predecessor products (including MainframeExpress, AppMaster Builder and EnterpriseLink Component Generator)to provide a complete integrated environment for COBOL applicationgeneration, development, maintenance and extension.

    This Getting Started with Mainframe Express Enterprise Editionbookgives an overview of Mainframe Express Enterprise Edition anddescribes how to use the combined functionality. In addition, onlineGetting Startedbooks are provided for each of the key functionalareas in the product.

    We suggest that, after reading this book to get the overall picture, youthen read the Getting Startedbooks for the areas you are interested in.Each contains an overview followed by basic tutorials.

    If a word is shown like this in the online documentation: click, you canclick it to display its glossary entry.

  • 8/10/2019 Inciando em Mainframe

    8/38

    Getting Started with Mainframe Express Enterprise Edition

    8 Chapter 1 Welcome!

    Functionality

    Mainframe Express Enterprise Edition contains the following keyfunctional areas:

    Mainframe Express

    Mainframe Express provides tools enabling you to use your PC todevelop, maintain and test applications for deployment on the

    mainframe. It includes integrated tools for editing, compiling andvisually debugging mainframe applications. Mainframe Express alsoprovides powerful tools such as project-management capabilitiesand IBM mainframe emulation.

    Analysis Option

    The Analysis Option helps you understand the logic of existingapplications so you can maintain them more effectively. It enables

    you to analyze application source within Mainframe Expressprojects so you can understand the logic. It stores this analysis in adatabase, which you can interrogate to help you understand theapplication.

    AppMaster Builder

    AppMaster Builder is an application generator that automates thedevelopment of applications. You paint CICS or IMS screeninterfaces and programs. AppMaster Builder then generates theBMS or MFS source corresponding to the screen and generates theCOBOL program source. It can also generate batch programs,including for example Report Writer programs. Generation rules canbe customized to suit your environment and enforce your shopstandards.

    AppMaster Builder includes a facility similar to Analysis Option,

    enabling you to analyze application source within AppMasterBuilder projects to help you in maintenance.

    The AppMaster Builder functionality has evolved from Micro Focussstand-alone AppMaster Builder product.

    Component Generator

    Component Generator provides a fast and effective way tointegrate legacy CICS or IMS applications with modern e-businesssystems while leaving the original application unchanged.

  • 8/10/2019 Inciando em Mainframe

    9/38

    Functionality 9

    Getting Started with Mainframe Express Enterprise Edition

    Component Generator generates industry-standard components(.NET, JavaBeans, EJBs, or Web services) that can be deployed on anystandard application server. These components can drive multipleback-end transactions, and so can represent a complete businessprocess, supporting the development of service-orientedarchitectures.

    The Component Generator functionality has evolved fromMicro Focuss stand-alone EnterpriseLink Component Generatorproduct.

  • 8/10/2019 Inciando em Mainframe

    10/38

    Getting Started with Mainframe Express Enterprise Edition

    10 Chapter 1 Welcome!

  • 8/10/2019 Inciando em Mainframe

    11/38

    Getting Started with Mainframe Express Enterprise Edition

    11

    2 Overview

    This chapter describes the key functional areas in Mainframe ExpressEnterprise Edition in more detail.

    Mainframe Express

    Mainframe Express is a GUI environment for developing andmaintaining COBOL applications in the traditional way, by manuallycoding the COBOL source. It includes an editor, a compiler and adebugger, plus emulation environments for Assembler, CICS, IMS, JCL,and TSO. It is project-based, and all these tools are closely integratedwith one another to make building an application and correctingerrors extremely fast and easy. Among many other tools and facilities,it can upload and download source or data files, or access them inplace on the mainframe. Thus, it can access source code on themainframe to compile it on the PC, and application test runs on the PCcan access data files on the mainframe.

    The main user interface of Mainframe Express is the IntegratedDevelopment Environment (IDE). This is a graphical user interface (GUI)with dropdown menus, multiple windows, popup help, and so on - infact all the usual advantages of a GUI.

    The emulators enable you to test your applications on MainframeExpress before deploying them to your production environment.

    Analysis Option

    The Analysis Option is a feature within the Mainframe Express IDE. Itanalyzes a legacy applications structure, the files it uses, how and

    where data items and other artifacts are used, and a number of otherdetails. It provides a variety of tools which you use to see the

  • 8/10/2019 Inciando em Mainframe

    12/38

    Getting Started with Mainframe Express Enterprise Edition

    12 Chapter 2 Overview

    relationships and dependencies between items in your application.Analysis Option gives you a valuable insight into the workings of yourapplication source code, thereby reducing the complexity, cost and riskof making application changes. It can analyze applications that includePL/I and Assembler sources as well as COBOL.

    The analysis is stored in a database associated with the applicationsMainframe Express project, and optionally is automatically updated inthe background whenever the project is rebuilt. The analysis can also beused as input to Component Generator to provide it with usefulinformation about the application.

    AppMaster Builder

    AppMaster Builder is a GUI environment for generating mainframe

    COBOL applications. You paint a character-mode screen interface and,by selecting options on dialog boxes, specify the program you want tosupport it. You can specify the user interface and database engine youwant. AppMaster Builder then automatically generates the equivalentCOBOL application and associated screens you have designed. Thisgenerated application is 100% standard COBOL and can be compiled byMainframe Express.

    AppMaster Builder can also generate batch programs, including forexample Report Writer programs.

    AppMaster Builder uses customizable rules. You can modify these rulesto tailor the code that is generated in your application, so you can tailorthe generation process to build precisely the applications you want.Generation rules can be used to enforce your shop standards.

    Applications developed using Micro Focuss APS for MVS product can beimported into AppMaster Builder for further development andmaintenance.

    AppMaster Builder includes a facility similar to the Analysis Option, butworking on AppMaster Builder sources (screens, programs, rules, etc),thus providing AppMaster Builder programmers with valuable help inmaintenance.

  • 8/10/2019 Inciando em Mainframe

    13/38

    Component Generator 13

    Getting Started with Mainframe Express Enterprise Edition

    You can test your applications in Mainframe Express before deployingthem. You can use the Mainframe Express debugger to debug S-COBOL.

    AppMaster Builder Customizer

    The Customizer is a feature within AppMaster Builder. It enables you tocall user-defined and pre-defined rules into COBOL programs. Youdefine rules using the Micro Focus Generator (MFG) built-in structures,native COBOL, S-COBOL (a type of short-hand COBOL), or anycombination of the three. AMB also provides many pre-definedCustomizer rules.

    When coding a program, you call a user rule using specific MFG syntax.When AMB generates your program, Customizer rules called from theprogram are expanded into native COBOL.

    The use of Customizer rules offers several advantages over coding

    native COBOL directly:

    Flexibility - Customizer rules can be coded into programs createdwith the Program Painter, as part of an Online Express specification,or in any text editor

    Expandability - Rules require relatively little code, which expandsinto larger volumes of native COBOL when processed by the Micro

    Focus Generator Consistency - each rule, when expanded, provides consistent COBOL

    code

    Reusability - you can call a rule any number of times from anynumber of programs

    Availability - both pre-defined and user-defined rules can be made

    available to all AMB developers in your shop

    Component Generator

    Component Generator is a feature within the Mainframe Express IDE. Itis a GUI environment enabling developers to expose legacy application

  • 8/10/2019 Inciando em Mainframe

    14/38

    Getting Started with Mainframe Express Enterprise Edition

    14 Chapter 2 Overview

    workflows as component-based services. Component Generatorautomatically generates all the source code required to integrate legacyapplications with other e-business systems, including the component(.NET, JavaBeans component, EJB, or Web service), its supporting COBOLdriver module and the appropriate middleware protocol.

    The combination of the generated component and supporting COBOLmodule is referred to as an eBiz transaction.

    Because all the required pieces are generated, you do not needspecialized training or expertise in C#, Java or middleware coding. No

    changes are required to the existing application.

    The auto-deployment feature means you can deploy to certainapplication servers with a simple click of a button. You can also publishdetails of a Web service to a UDDI repository with a simple click of abutton.

    Component Generator can use the analysis of an application by the

    Analysis Option as a starting point for creating eBiz transactions. If anapplication was developed using AppMaster Builder, you run theAnalysis Option in Mainframe Express on the generated sources, andthis analysis is used.

    You can test your eBiz transactions on Mainframe Express beforedeploying them.

    Note:If Micro Focuss Revolve product is on your machine, a function torun it appears automatically on your Mainframe Express menu. This isprovided for compatibility reasons. Users of Mainframe ExpressEnterprise Edition should not normally use this function.

  • 8/10/2019 Inciando em Mainframe

    15/38

    Getting Started with Mainframe Express Enterprise Edition

    15

    3 Using Mainframe Express

    Enterprise Edition

    Mainframe Express Enterprise Edition can be used in many ways, but itsgreatest strength is in offloading the maintenance and enhancement

    of mainframe applications. This chapter describes some of the mostcommon scenarios.

    The Application Maintenance Cycle

    The usual process of updating a mainframe application usingMainframe Express Enterprise Edition is, in brief:

    1 Download the sources to the PC, or connect to them on themainframe

    2 Understand the application

    3 Update the source

    4 Compile the source and build the application

    5 Debug the changes

    6 Test the application

    7 Upload the sources to the mainframe if you downloaded them.

    8 Compile and system test on the mainframe

    You can return from any step to any earlier step to correct errors -hence the term "cycle".

    Note:Of course, you can use Mainframe Express Enterprise Edition todevelop new applications, and to develop and maintain PC

    applications. These processes are subsets of the process of maintaininga mainframe application - for example, there is no need to download

  • 8/10/2019 Inciando em Mainframe

    16/38

    Getting Started with Mainframe Express Enterprise Edition

    16 Chapter 3 Using Mainframe Express Enterprise Edition

    or import existing sources. Therefore, we will concentrate on describinghow you use Mainframe Express Enterprise Edition for offloading - thatis, using the PC to maintain or enhance your existing mainframe

    applications.

    If your mainframe applications were developed using Micro Focuss APSproduct, your sources are in the form of APS screens, programs, rulesand so on. Alternatively, if your applications were created by codingdirectly in COBOL, your sources consist of COBOL programs and perhapsCICS BMS screens or IMS MFS screens. Well refer to these two methods

    as application generation and traditional. Mainframe Express EnterpriseEdition can be used to maintain both types of application with equalease.

    Alternatively, you might already have been using Micro Focus productsto develop mainframe applications on the PC, using Workbench fortraditional development or the stand-alone AppMaster Builder productfor application generation development. In this case, your sources are

    already on the PC. You can easily migrate them from Workbench or thestand-alone AppMaster Builder to Mainframe Express Enterprise Editionfor future maintenance.

    The following two subsections describe the maintenance of atraditionally-developed application and of an application developed byapplication generation. As well as the features described already, thesesubsections introduce some of the many other tools provided to assist in

    maintenance, such as the source-level debugger, the Test Coveragefacility, Mainframe Access, and the AppMaster Builder MigrationWizard.

    Traditional Maintenance

    Maintaining a traditional COBOL application using Mainframe ExpressEnterprise Edition consists of the following steps (also showndiagrammatically, in Figure 3-1below):

    1 Use Mainframe Access (MFA) Drag & Drop to download the sourcesfrom the mainframe to the PC.

    Your administrator might do this step for you.

  • 8/10/2019 Inciando em Mainframe

    17/38

    The Application Maintenance Cycle 17

    Getting Started with Mainframe Express Enterprise Edition

    Mainframe Access is Micro Focuss host connectivity software,included as part of Mainframe Express Enterprise Edition. Drag &Drop is a file transfer facility within Mainframe Access. You need to

    have installed Mainframe Access server on your mainframe. Thisruns as a z/OS started task.

    We recommend that you download your sources when you firstmigrate the application to Mainframe Express Enterprise Edition,and thereafter keep your master sources on the PC, so thisdownload is a once-only task. Alternatively, you can keep thesources on the mainframe and have the tools in Mainframe Express

    Enterprise Edition access them there - the SourceConnect facility inMainframe Access enables you to see the mainframe as if it were adrive on the network, so you can edit, compile, and debug at the PCwithout moving the sources to the PC. This may be more convenientin some circumstances, but inevitably performance will be better ifyou access them locally on the PC.

    You can store your sources in a Source Code Manager (SCM) if you

    want. Some SCMs can be integrated with Mainframe Express, sothat you can check files in and out from the Mainframe Expressmenus, or have files automatically checked out when you openthem for edit. This is the case even if the SCM is on the mainframe.

    Test data too can be downloaded, or alternatively left on themainframe for the application to access from the PC via theDataConnect facility in Mainframe Access.

    2 Create a Mainframe Express project for your application.

    A project is a file containing links to, and details of, all the files inyour application. You view it as a tree view in a project windowwithin the IDE. This tree view shows all the details of yourapplication, and you do all your work in the project window.

    3 Use the Analysis Option to analyze the source to discover the uses of

    and relationships between elements in your application.A major problem in maintaining an existing application isunderstanding logic written by someone else, often many yearsago. The Analysis Option analyzes the source, identifying whereitems are used and referenced and the impact of changing them,and identifying self-contained procedures. This is a major aid indebugging and maintenance. The analysis is stored in a databaseassociated with the Mainframe Express project.

    18 Ch 3 U i M i f E E i Edi i

  • 8/10/2019 Inciando em Mainframe

    18/38

    Getting Started with Mainframe Express Enterprise Edition

    18 Chapter 3 Using Mainframe Express Enterprise Edition

    4 Update the COBOL source, using the COBOL editor in MainframeExpress.

    The editor displays different types of COBOL words (for example,verbs, data-names, etc.), in different colors, so that many types oferror are obvious to you immediately, without even waiting forcompilation.

    The first time through after migrating the application, you willprobably want to omit this step and go straight to compiling andrunning the application, to ensure the migrated application works

    before you start updating it.5 Compile the source (build the application).

    Compilation error messages are displayed in the IDE, and if you clickon one the editor appears, positioned at the line in error. PressingF1brings up help about the error.

    Optionally, the application analysis done by Analysis Option is

    automatically updated.

    6 Debug the application, using the extensive single-stepping and datamonitoring facilities in the source-level debugger.

    You can move swiftly and directly between the debugger, editor,and compiler to fix errors. The debugger works not only in thenormal Mainframe Express environment, but also with theemulators included in Mainframe Express.

    7 Use the Test Coverage facility to check that every path through theapplication is covered by your tests.

    The Test Coverage facility produces reports showing how manytimes each line and block of code has been executed. If afterrunning the application with all your different sets of data somelines are still shown as never executed, you have identified a gap in

    your testing.8 Test the application on the PC, in one of the emulators in

    Mainframe Express.

    Mainframe Express includes CICS, IMS, JCL and TSO emulators.

    9 For final system test and production, deploy the built application toyour production environment.

    The Application Maintenance C cle 19

  • 8/10/2019 Inciando em Mainframe

    19/38

    The Application Maintenance Cycle 19

    Getting Started with Mainframe Express Enterprise Edition

    For example, upload the files to your mainframe and deploy themin a CICS or IMS region.

    This process is shown diagrammatically in Figure 3-1.

    Figure 3-1. The Maintenance Process for a Traditional COBOLApplication

    20 Chapter 3 Using Mainframe Express Enterprise Edition

  • 8/10/2019 Inciando em Mainframe

    20/38

    Getting Started with Mainframe Express Enterprise Edition

    20 Chapter 3 Using Mainframe Express Enterprise Edition

    AppMaster Generation Maintenance

    AppMaster Builder contains its own Analysis Option, which does asimilar job to the one in Mainframe Express, but on AppMaster Buildersources and with a subset of the features. It enables you to determinerelationships between the entities (programs, screens, data structures,user rules, and so on) at the AppMaster Builder application level or atthe AppMaster Builder project level.

    AppMaster Builder also contains a Migration Wizard, which you use to

    download APS sources from the mainframe and import them into anAppMaster Builder project.

    Maintaining a COBOL application developed by application generation,using Mainframe Express Enterprise Edition, consists of the followingsteps (also shown diagrammatically, in Figure 3-2below):

    1 Use the Migration Wizard to download the sources from themainframe to the PC and import them into an AppMaster Builderproject.

    Your administrator might do this step for you.

    The Migration Wizard uses the Mainframe Access (MFA) Compareand Synchronization monitor to connect to the mainframe andimport the sources. Mainframe Access is Micro Focuss hostconnectivity software, included as part of Mainframe Express

    Enterprise Edition. The Mainframe Access server must be installedon your mainframe. This runs as a z/OS started task.

    We recommend that you download your sources when you firstmigrate the application to Mainframe Express Enterprise Edition,and thereafter keep your master sources on the PC, so thisdownload is a once-only task. Everything necessary to get yoursources into a suitable directory structure on the PC is done by the

    Wizard.You can store your sources in a Source Code Manager (SCM) if youwish. Some SCMs can be integrated with AppMaster Builder, so thatyou can check files in and out from the AppMaster Builder menus.

    Test data too can be downloaded, or alternatively left on themainframe for the application to access from the PC via theDataConnect facility in Mainframe Access.

    The Application Maintenance Cycle 21

  • 8/10/2019 Inciando em Mainframe

    21/38

    The Application Maintenance Cycle 21

    Getting Started with Mainframe Express Enterprise Edition

    2 Create an AppMaster Builder project for your application.

    A project is a folder structure containing the related entities that

    make up your application. You view it as a tree view in a projectwindow within the IDE. This tree view shows all the details of yourapplication, and you do all your work in the project window.

    3 Use the AppMaster Builders own Analysis Option to analyze thesource to discover the uses of and relationships between elementsin your application.

    A major problem in maintaining an existing application is

    understanding logic written by someone else, often many yearsago. The analysis facilities analyze the source, identifying whereitems are defined and referenced and the impact of changing them.The analysis is stored in a database associated with the AppMasterBuilder project.

    4 Update the source - screens, program, S-COBOL and so on - usingAppMaster Builder.

    The first time through after migrating the application, you willprobably want to omit this step and go straight to compiling andrunning the application, to ensure the migrated application worksbefore you start updating it.

    You use the tools within AppMaster Builder as follows:

    a Use the Application Properties dialog box to update your

    interface and database target.

    b Use the screen painter to update your screens.

    c Use the Program Painter to update your program.

    d Use Online Express to update relationships between actions(such as pressing a key) and events (such as querying a databaseor performing other business logic), associate screen fields with

    database columns, and create/modify interactions with yourdatabase.

    e Customize the processing (if necessary) by writing scripts in S-COBOL, a COBOL-based scripting language.

    5 In AppMaster Builder, use the Application Properties dialog box toassociate the application with a Mainframe Express project.

    22 Chapter 3 Using Mainframe Express Enterprise Edition

  • 8/10/2019 Inciando em Mainframe

    22/38

    Getting Started with Mainframe Express Enterprise Edition

    22 Chapter 3 Using Mainframe Express Enterprise Edition

    6 AppMaster Builder generates the application for you, and calls theMainframe Express compiler to compile it.

    7 Debug the application, using the extensive single-stepping and datamonitoring facilities in the source-level debugger.

    The source-level debugger can debug either S-COBOL or nativeCOBOL, and can even show both side by side. It works not only inthe normal Mainframe Express environment, but also with theemulators included in Mainframe Express.

    If you find changes are needed to the application, you should

    update the sources in AppMaster Builder. We do not recommendthat you edit the generated COBOL directly using the MainframeExpress editor, as any changes you make will be lost when you nextregenerate. However, you might find it useful to view your S-COBOLin the editor, since the editor recognizes and colorizes S-COBOLsyntax - this means many types of error are obvious to youimmediately, without waiting for compilation.

    8 Use the Test Coverage facility to check that every path through theapplication is covered by your tests.

    The Test Coverage facility produces reports showing how manytimes each line and block of code has been executed. If, afterrunning the application with all your different sets of data, somelines are still shown as never executed, you have identified a gap inyour testing.

    Test Coverage works with generated COBOL source, not S-COBOL.

    9 Test the application on the PC, in one of the emulators inMainframe Express.

    Mainframe Express includes CICS, IMS, JCL and TSO emulators.

    10 For final system test and production, deploy the built application to

    your production environment.For example, upload the files to your mainframe and deploy themin a CICS or IMS region.

    This process is shown diagrammatically in Figure 3-2.

    The Application Maintenance Cycle 23

  • 8/10/2019 Inciando em Mainframe

    23/38

    pp y

    Getting Started with Mainframe Express Enterprise Edition

    Figure 3-2. The Maintenance Process for an "Application Generated"Application

    24 Chapter 3 Using Mainframe Express Enterprise Edition

  • 8/10/2019 Inciando em Mainframe

    24/38

    Getting Started with Mainframe Express Enterprise Edition

    Legacy Extension

    Legacy extension means extending and enhancing the usefulness of alegacy application. This often involves adding a new, more moderninterface or integrating the application into a new enterprise-wide orbusiness-to-business system. For example, if the application has a CICSor IMS character-based interface, you might want to add a graphicalWeb interface for use by staff, business partners or customers.

    A software component, also called a reusable object, is a unit ofexecutable code with an explicit set of interfaces. It is writtenindependently of any applications that might use it, and is deployed asa service, available to be invoked by any client application. There aremany mechanisms that make this possible - see the section ComponentGeneratorin the earlier chapter Overview.

    Component Generator creates an interface to a legacy application, so

    that it appears to the outside world as an industry-standard component,which provides a set of methods available for invocation by remoteclients. In this way, your proven business processes can be accessed fromvirtually any modern technology. This interface can be invoked by anew Web front end or another component-based application.

    Using Component GeneratorIn Component Generator, you create a set of eBiz transactions, whichrepresent business processes. An eBiz Transaction consists of thegenerated component plus a supporting COBOL module that resides onthe mainframe and drives one or more CICS or IMS transactions. Todefine the eBiz transactions, you can do one or more of the following:

    Use the Analysis Option in Mainframe Express to analyze theapplication. Component Generator uses the analysis to identify thesequence of transactions and steps required to complete a specificbusiness process. (If the application was developed by applicationgeneration, you run the Analysis Option on the generated source.)

    Run the legacy application in a special terminal emulator called theWorkflow Capture Facility. This records the sequence of transactionsand steps required to complete a specific business process. (For IMS,

    Legacy Extension 25

  • 8/10/2019 Inciando em Mainframe

    25/38

    Getting Started with Mainframe Express Enterprise Edition

    you must run the Analysis Option first; for CICS, you can useWorkflow Capture with or without the Analysis Option.)

    Use Component Generator to analyze the COMMAREA(s) of one ormore programs, to define a component that interfaces with theircommunication areas rather than with a 3270 screen interface (CICSonly).

    Use Component Generator to generate "data access" componentsthat provide direct access to data in mainframe DB2, VSAM or IMSdatabases. These components bypass the legacy application

    altogether, minimizing the mainframe resources required to obtainraw data.

    Your application continues running unchanged - adding thiscomponent interface does not interfere with the normal operation ofthe application.

    A typical process for legacy extension, combining the first two of theabove methods, consists of the following steps (also shown

    diagrammatically, in Figure 3-3below):

    1 If the application was developed by application generation,generate COBOL source.

    2 In Mainframe Express, use the Analysis Option to analyze theCOBOL source.

    Note that you use the Analysis Option in Mainframe Express for this,even for an application developed by application generation.

    3 Run the legacy application in the Workflow Capture Facility.

    This records the sequence of transactions and steps required tocomplete a specific business process.

    4 In Component Generator, define a set of eBiz transactions based onthe workflows and analysis obtained above:

    a Use the eBiz Transaction Wizard to create the eBiz transactions

    b Use the eBiz Transaction Painter to complete the eBiztransactions

    5 In Component Generator, generate the component.

    This also generates a supporting COBOL driver module and test

    clients.

  • 8/10/2019 Inciando em Mainframe

    26/38

    Legacy Extension 27

  • 8/10/2019 Inciando em Mainframe

    27/38

    Getting Started with Mainframe Express Enterprise Edition

    Figure 3-3. Legacy Extension Using Component Generator

  • 8/10/2019 Inciando em Mainframe

    28/38

    29

  • 8/10/2019 Inciando em Mainframe

    29/38

    Getting Started with Mainframe Express Enterprise Edition

    4 New Features

    This chapter lists features that will be new to you depending on whichMicro Focus products you have used before.

    New Users

    If youre entirely new to Mainframe Express Enterprise Edition and itspredecessors, youll find its great advantage is that you can do all yourdevelopment and maintenance work, including all but the final livestages of testing, on the PC. This means you free your mainframe to

    concentrate on production.

    In addition, you will find all the advantages described in the sectionsbelow.

    Benefits of IntegrationIf youve been using Mainframe Express, AppMaster Builder, orComponent Generator until now, youll find that having all theirfeatures integrated into one product brings many benefits. Forexample:

    You can now use AppMaster Builder to generate an application,and then use the source-level debugger to debug it (both COBOLand S-COBOL), the Analysis Option to examine its structure, andthe Test Coverage feature to check you are testing it thoroughly.

    You can import source loaded in Mainframe Express (which mighthave been generated by AppMaster Builder), into ComponentGenerator, so that you can deploy your application as a reusablecomponent.

    30 Chapter 4 New Features

  • 8/10/2019 Inciando em Mainframe

    30/38

    Getting Started with Mainframe Express Enterprise Edition

    All the working information that underlies the development of anapplication, such as its project file, the analysis database produced bythe Analysis Option, any workflows captured by Component Generator,

    and so on, are seamlessly available to all the different facilities withinMainframe Express Enterprise Edition.

    Mainframe Express Users

    Here is an overview of some of the major enhancements in MainframeExpress 3.0 compared with Mainframe Express 2.5:

    New dialect setting to provide compatibility with Enterprise COBOLfor z/OS.

    Support for IBM DB2 up to version 7

    Added support for CICS TS 2.2 and IMS 8

    Analysis Option

    Test Coverage Reporting

    ISPF-like functions in source editor

    SQL Assistant for faster production of embedded SQL statements in

    COBOL

    Improved data file editor

    Automatic FixPack installation utility

    Improved source synchronization and build automation

    Usage logging

    Improved tools for downloading mainframe data and transactioninformation

    Improved build exit points for better integration with 3rd partyproducts and in-house processes

    Workbench Users 31

  • 8/10/2019 Inciando em Mainframe

    31/38

    Getting Started with Mainframe Express Enterprise Edition

    Workbench Users

    Within Mainframe Express Enterprise Edition, support for traditionaldevelopment and maintenance of mainframe applications is providedby Mainframe Express. The above section Mainframe Express Usersdescribes the enhancements in Mainframe Express 3.0, compared withMainframe Express 2.5.

    You will furthermore find that Mainframe Express provides a much

    improved development and maintenance environment when comparedto Micro Focus COBOL Workbench 4.0. Some of the highlights are listedbelow:

    Modern, Windows-based Integrated Development Environment(IDE) providing access to all necessary tools.

    Easier and faster setup.

    Server based install option for easier management.

    Higher compatibility with mainframe compiler options

    Intelligent "build" of an entire application with one click of themouse.

    Improved editing and debugging functionality for higherproductivity.

    Integration with common Configuration Management tools such asCA-Endevor, CA-Librarian, MERANT PVCS and Microsoft VisualSourcesafe.

    Includes all emulators necessary for mainframe systemdevelopment: CICS, IMS, JCL, TSO, REXX, Assembler, SQL Option forDB2.

    Direct connection to mainframe to access source and data

    Synchronization facilities to keep in step with mainframe libraries.

    Workgrouping features to provide a multi-user framework,allowing you to share essential resources such as sources, data andload libraries.

    Mainframe-style catalog with mainframe naming conventions.

    32 Chapter 4 New Features

  • 8/10/2019 Inciando em Mainframe

    32/38

    Getting Started with Mainframe Express Enterprise Edition

    Simple "Drag and Drop" downloads of mainframe source and datainto your Mainframe Express environment.

    AppMaster Builder Users

    Here is an overview of some of the major enhancements in theAppMaster Builder in Mainframe Express Enterprise Edition compared

    with the stand-alone AppMaster Builder 4.0 product:

    Analysis Option for AppMaster Builder sources

    Additional COBOL debug window view for debugging S-COBOL

    COBOL slaved view in debugger - you can see the generated COBOLwhile debugging S-COBOL

    Workgrouping, providing improved generation with additionalsubsystem support, enabling source residing on the mainframe tobe used during application generation

    Generation of XML schema project information

    Automated generation/compilation

    Usage logging

    Support for DB2 version 7.

    Note:The AppMaster Builder in Mainframe Express Enterprise Editioncreates and maintains character-based applications. The facility inAppMaster Builder 4.0 to create GUI applications is not included.

    APS Users

    Within Mainframe Express Enterprise Edition, support for applicationgeneration of mainframe applications is provided by AppMaster

    Builder. The above sectionAppMaster Builder Usersdescribes the

    EnterpriseLink Component Generator Users 33

  • 8/10/2019 Inciando em Mainframe

    33/38

    Getting Started with Mainframe Express Enterprise Edition

    enhancements in the AppMaster Builder in Mainframe ExpressEnterprise Edition, compared with the separate AppMaster 4.0 product.

    You will furthermore find that AppMaster Builder provides a muchimproved development and maintenance environment when comparedto Micro Focus APS 5.0. Some of the highlights are listed below:

    AppMaster Builder runs on the PC, providing the same functionalityon the PC as APS does on the mainframe.

    By developing on the PC for deployment on the mainframe, youavoid using mainframe resources for development. Instead of

    cumbersome and expensive mainframe tools, you can takeadvantage of the Mainframe Express Enterprise Editionenvironment. This is a faster, functionally richer, lower cost way ofproducing robust mainframe applications.

    Modern, Windows-based Integrated Development Environment(IDE) providing access to all necessary tools.

    From within AppMaster Builder, you can invoke the MigrationWizard to transfer your APS project group datasets to the PC so youcan maintain them in AppMaster Builder.

    The Wizard uses the Mainframe Access (MFA) SynchronizationMonitor to put them in the correct directory structure on the PC.

    EnterpriseLink Component Generator Users

    Here is an overview of some of the major changes in the ComponentGenerator in Mainframe Express Enterprise Edition compared with thestand-alone EnterpriseLink Component Generator 5.0 product:

    You can extend both CICS and IMS transactions as reusablecomponents.

    You can generate .NET components for easy integration within theMicrosoft .NET environment.

    Usage logging.

    34 Chapter 4 New Features

  • 8/10/2019 Inciando em Mainframe

    34/38

    Getting Started with Mainframe Express Enterprise Edition

    35

  • 8/10/2019 Inciando em Mainframe

    35/38

    Getting Started with Mainframe Express Enterprise Edition

    A Send Us Comments

    Comments on the books? In the online version of this book, click thelink below.

    Please include an indication of exactly where in the books the problemis - give the book, chapter, and section name.

    After clicking the link, you can click this windows Backbutton to getback to where you were, so you can see it while youre typing yourcomment.

    We cannot guarantee to answer every comment, but every commentwill be read and taken note of for future revisions.

    To Send a Comment

    To email us a comment, click here in the online version of this book:

    Note:Your comments will go only to this products DocumentationTeam, and not to other units in Micro Focus. This feature is intendedfor quick, informal comments regarding the books, and does notreplace the normal facilities for contacting Support or reportingproblems.

    36 Appendix A Send Us Comments

  • 8/10/2019 Inciando em Mainframe

    36/38

    Getting Started with Mainframe Express Enterprise Edition

  • 8/10/2019 Inciando em Mainframe

    37/38

    38

  • 8/10/2019 Inciando em Mainframe

    38/38

    Getting Started with Mainframe Express Enterprise Edition

    compared to Component Generator 5.033

    compared to Mainframe Express 2.5 30

    compared to Workbench 4.0 31for new users 29

    O

    Overview

    Mainframe Express Enterprise Edition 11of Mainframe Express Enterprise Edition

    7

    P

    ProcessMainframe Express Enterprise Edition 15

    T

    Traditional maintenance 16Tutorialscapturing a workflow 29

    W

    Workflowtutorial on capturing 29

    Workflow Capturetutorial 29