Sample Converted Applications
These examples demonstrate the use of COBOLTranslator for conversion of
COBOL applications.
The gererated screens are shown with minor cosmetic tyding up,
their primary function here is to demonstrate the translation of logic and the short time
taken to achieve a compilable state.
Further cosmetic improvement to your applications can be achieved
rapidly using HTML designers such as MacroMedia DreamVeawer, Microsoft FrontPage, etc.
Loan example
Loan calculation. Program Screen Section coded with XML definition.
Resulting HTML may be customized by editing XSLT stylesheet (for XSLT/Servlet version)
or JSP template (for JSP version).
Datetime example
This example demostrates, how CORECT deals with date and time related
functions. Handling ACCEPT FROM DATE statements with help of java.util.Date
features may be a way of solving Y2K issues.
Product example
As so Product example contains no screen definitions, there is no
Screen Section XML definition used. DISPLAY's and ACCEPT's dial directly
with screen coordinates instead. This example demonstrates alternation
of static JSP screens for CALL'ed programs.
Clients example
Clents example demonstrates a way of resolution of implicit persistent REDEFINES (i.e.
a situation, when file descriptor has multiple 01-level entries). It also utilizes
some new features in screen handling, such as DISPLAY/ACCEPT of array element.
CICS Clients example
CICS Clients example consists of 3 programs, representing a chain of CICS
transactions:
- Invmenu program plays a role of master menu for the rest two programs.
It demostrates using of functional keys, CICS XCTL, SEND/RECEIVE MAP and RETURN commands.
- Custinq1 performs read operations on the server-side persistent
storage (VSAM files emulation). This example demostrates using of CICS
READ FILE command.
- Custmnt2 performs maintenance operations on the server-side persistent
storage (VSAM files emulation), such as creating, updating, and deleting customer
record. This example demostrates using of CICS commands
READ FILE UPDATE, WRITE, REWRITE and DELETE.
Product2 example
Product2 example is a demonstration of VSAM files emulation with help of SQL
database engine. Single product description extended to be using arrayed
variables (array of discounts depending on supplies quantity). Such data
stored within separate SQL table. Source file archive contains two versions
of this program:
- Plain version (com.softwaremining.examples.product2 package), where
runnable instances are invoked through it's default constructor.
- EJB version (com.softwaremining.examples.product2ejb package), where
runnable instances are invoked through looking up in JNDI namespace.
Report example
This program demonstartes support for RWCS (Report Writer Control System).
|