Skip to content

About

using the blAST engine to provide 10 examples of 10 cobol repos translated to compiling java spring boot

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

COBOL to Java: GitGalaxy examples

Six real mainframe estates, taken through GitGalaxy's COBOL-to-Java pipeline, unedited. Each compiles (the compile workflow builds every one on each push), and each is regenerated by a script from a pinned source commit, so a refresh arrives as a pull request whose diff is exactly what a pipeline change did.

What the pipeline produces, and what it does not

Generated from verified facts. GitGalaxy scans the estate and extracts its facts: programs, calls, CICS resources, COMMAREA and record layouts, VSAM keys, DB2 tables, JCL job flow, and more. Each fact channel is checked against hand-verified answer keys on these same corpora, including blind-reviewer censuses, and its field-testing status is published (fact-channel status). From those facts it builds the structure of a Spring Boot application:

  • JPA entities for VSAM files, with record codecs;
  • DTOs for COMMAREAs, containers and screens;
  • REST endpoints for transactions and LINKs;
  • services wired to each other;
  • repositories for VSAM and DB2;
  • Spring Batch jobs for the JCL;
  • messaging for TS/TD queues and MQ.

Every generated class, method and field is traced back to the source line and fact it came from (traceability.json).

Not generated: business logic. Each program's PROCEDURE DIVISION is a traced TODO. Those TODOs, with everything else left to a person, are sorted in migration_worklist.md. Porting the logic is per-program work, and the equivalence harness below is how it is proven.

The examples

example estate Java files services entities DTOs batch jobs generated / JCL jobs worklist items GitGalaxy
carddemo AWS CardDemo: CICS online (BMS screens, COMMAREA), VSAM, DB2, IMS, MQ and a JCL batch cycle 241 44 39 76 16 / 55 198 scan
cbsa IBM CICS Bank Sample Application: CICS / DB2 online banking and its DB2 install JCL 178 31 15 75 1 / 46 173 scan
genapp IBM CICS GenApp: the general insurance application (CICS, DB2, VSAM) 167 31 10 68 0 / 29 335 scan
zecs Walmart zECS: an assembler + COBOL CICS key/value service 43 6 10 5 0 / 10 93 scan
zopeneditor IBM Z Open Editor sample: batch COBOL and PL/I with JCL 37 9 7 5 2 / 8 19 scan
dsf-pli NAV DSF: the Norwegian pension system, 431 PL/I programs under CICS / IMS 1047 456 67 16 0 / 0 4657 scan

Each examples/<name>/ has:

  • java/: the Spring project, as generated;
  • reports/: offline readiness & redacted blocker reports (readiness.json, readiness_redacted.json), plus translation_fidelity.{json, md} structural checks;
  • PROVENANCE.md: source commit, licence, generator commit, commands;
  • scan_comparison.md: the source estate and the Java, scanned by the same engine.

For an offline readiness & blocker-report walkthrough on your own estate (zero source leakage via gitgalaxy assess --redact), reach out to [email protected]. First blind estate validation (example-health-apis, 28 programs, deterministic det only): 23/28 (82%) proven first try (28/28 post-fix).

Behavioural equivalence

The structure is necessary but not sufficient, so the ported logic is proven. The original program runs under GnuCOBOL, the Java runs on the same inputs, and every output record is diffed field by field, decimals exact.

program estate as generated generated + port
COACTVWC aws-mainframe-modernization-carddemo 0 / 97 97 / 97
COADM01C aws-mainframe-modernization-carddemo 0 / 88 88 / 88
COBIL00C aws-mainframe-modernization-carddemo 0 / 119 119 / 119
COCRDLIC aws-mainframe-modernization-carddemo 0 / 126 126 / 126
COCRDSLC aws-mainframe-modernization-carddemo 0 / 65 65 / 65
CBPAUP0C aws-mainframe-modernization-carddemo 0 / 183 183 / 183
CBSTM03A aws-mainframe-modernization-carddemo 0 / 4186 4186 / 4186
CBACT04C aws-mainframe-modernization-carddemo 5 / 105 105 / 105

CardDemo's CBACT04C (the interest calculator) matches on every record. The harness also found a defect in the original: the last account's interest is never added to its balance, because the loop's end-of-file branch is unreachable. The port keeps that behaviour, documented at the spot; fixing it is a business decision, not a translation one.

Licences and provenance

Each example is derived from its source and is under that source's licence. The source's LICENSE and NOTICE files are included beside it, every generated file opens with a notice, and THIRD_PARTY_NOTICES.md lists them all. The repository's own files are Apache-2.0 (LICENSE).

IBM, CICS, DB2, IMS and z/OS are trademarks of International Business Machines Corporation; AWS and Amazon Web Services are trademarks of Amazon.com, Inc. or its affiliates; Walmart is a trademark of Walmart Apps, LLC; NAV is the Norwegian Labour and Welfare Administration. Their names are used only to identify the source code these examples are derived from. This repository is not affiliated with, sponsored or endorsed by any of them.

Generated by GitGalaxy commit 93847302510e with tests/tools/publish_examples.py.

About

using the blAST engine to provide 10 examples of 10 cobol repos translated to compiling java spring boot

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages