

   =========================================================================
                        M I C R O   F O C U S

                   S E R V E R   E X P R E S S  5.0
   =========================================================================

                           PI DEMO
                           =======

   TABLE OF CONTENTS
   =================
       DESCRIPTION
       SOURCE FILES
       REQUIREMENTS
       HOW TO COMPILE
       HOW TO RUN THIS DEMO
       WHAT THIS DEMO DOES


   DESCRIPTION
   ===========

   This demo shows how a COBOL program can display results via Java.

   
   SOURCE FILES
   ============

   calc_pi.cbl	- COBOL source to generate pi
   AboutBox.java	- About box
   calc_pi.java	- Java source that wraps the COBOL program calc_pi
   Frame1.java	- Window frame for main application
   pi.java		- Main application that invokes the window frame
    
   
   REQUIREMENTS
   ============

   Set up the COBOL and Java environments as described in Chapter 1
   of your Distributed Computing book.


   HOW TO COMPILE THIS DEMO
   ========================

   
   A script is provided that compiles all the programs. To invoke
   the script, enter:

     sh ./build.sh


   HOW TO RUN THIS DEMO
   ====================

   You can run the demo in graphical mode or in character mode.

 
   Graphical Mode
   ==============

   At the command line enter:

   cobjrun pi

   An application window appears. Pull down the Run menu and select an
   option. 

   When you have finished, select Exit on the File menu.

   
   Character Mode
   ==============
   
   At the command line enter:

   cobjrun calc_pi


   WHAT THIS DEMO DOES
   ===================

   This demo calculates the value of pi at various speeds and displays
   the result.

   The COBOL source is wrapped by the Java class "calc_pi". This exposes 
   four methods:

       setup_picalc
       calc_a_term
       getTerm
       getCurrentPI

   These map onto entry points in the COBOL source with the same names.


   =========================================================================
   Micro Focus is a registered trademark, and Server Express is a trademark,
   of Micro Focus International Limited. 
   =========================================================================
   Copyright (C) 1996-2000 Micro Focus International Limited. 
   All rights reserved.
