Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseInsight · On RadarAWS Machine Learning Blog→ original

AWS shows how to move banking Assembler code to Java through COBOL in five stages

Banks and insurers still run nightly batch jobs written in Assembler, a language that sits close to machine instructions and that fewer and fewer people can read. AWS recommends not moving straight to Java but going through five stages: AI extracts business rules, writes them out as COBOL (an intermediate language that domain experts can read), and AWS Transform converts that COBOL into Java Spring Boot. Experts check every step, so rules that were forgotten along the way do not get lost.

AI-processed from AWS Machine Learning Blog; edited by Hamidun News
AWS shows how to move banking Assembler code to Java through COBOL in five stages
Source: AWS Machine Learning Blog. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceAWS Machine Learning Blog ↗
Editor-in-Chief
Key metric #1Bedrock is called with temperature 0, so answers do not change from run to run
Key metric #2The model returns the extracted rules as JSON, numbered BR001, BR002, and so on
Key metric #3The AI's answers are treated as a draft, and experts review them before code generation

Imagine a batch job that has run every night without failure for decades, and the only person who understands its code is about to retire. AWS says it regularly sees this situation at banks, insurance companies, and airlines. Their critical processes run on Assembler, a language close to processor machine instructions, where the business meaning is buried in operations on registers and memory. Fewer and fewer specialists can read this code. Rewriting it by hand can take years, and there is a risk of breaking rules that nobody remembers anymore. That is why AWS has published a methodology: AI takes on part of the work, and the business logic is verified at every step.

Why COBOL sits in the middle

The core idea of the methodology is not to convert Assembler to Java directly. First, the code is turned into COBOL, an older language for business computing that reads almost like a description of operations. Then the AWS Transform service converts the COBOL into applications on Java Spring Boot, that is, into ordinary services for the AWS cloud. According to AWS, this route is more reliable than a direct one. The intermediate COBOL is understandable to domain experts, who can check the logic before the final translation. If existing COBOL code is already available, the Assembler stage is skipped and the code goes straight into AWS Transform.

The source system looks classic. JCL jobs run Assembler programs on a schedule. The programs read VSAM files and ordinary sequential files, work with an IBM Db2 for z/OS database, and write results to files or tables. They report completion through JCL return codes. All of this runs on an IBM z/OS mainframe.

The five stages step by step

Stage one is Business Rules Extraction (BRE). A model in Amazon Bedrock or in the Kiro IDE receives the Assembler code along with its documentation. It returns JSON: each rule with a number (BR001, BR002, and so on), a name, a purpose, input and output fields, and trigger conditions. There is also a mapping table showing which register or memory area becomes which variable in COBOL. The more context you give the model (data dictionaries, process descriptions), the more accurate the result.

Stage two is the functional specification. Based on the rules, the model drafts a description of the future program: COBOL data structures, the sequence of steps, and a coverage map showing where in the code each rule is implemented. Stage three is generating the intermediate COBOL from that specification. Next comes verification and the translation to Java through AWS Transform, with functional equivalence tests: the old and new code must produce identical results on the same data.

Practical tips and limitations

Some of the advice is useful beyond AWS. The model's temperature is set to 0 so that results do not change from run to run. For a large number of programs, the same prompts are called through the Bedrock Converse API, and each result is stored in an Amazon S3 bucket, where the next stage picks it up. Testing should be done on anonymized data, not on production or personal data. The model should be chosen for strong code understanding and a large context window, because Assembler programs are long and dense. AWS adds that Bedrock does not use your prompts and responses to train AWS models and does not share them with third parties.

The human role matters most. AWS explicitly calls the rule documents drafts. Experts must review them, record discrepancies in a log, and update the document before moving on. Block diagrams and data flow diagrams are useful for the review. A checklist also helps: are the rules correct, are the fields mapped properly, are edge cases and errors covered?

There are caveats too. The material contains no measured results. AWS speaks only of "reduced time compared with the manual approach," without percentages, timelines, or client names. The published excerpt ends at the COBOL conversion stage, so the details of verification and the final translation are not covered here. In addition, if the model checks the code itself, its assessment does not replace a run on real test data with known outputs. That is why AWS's prerequisites specify test data sets with expected outputs.

The practical takeaway for teams with legacy systems: process discipline matters more than any particular model. First, the rules are captured in a document. Then comes readable intermediate code, and people and tests verify the result at each step. The pattern can be repeated without AWS by substituting your own models and tools.

Story

Key Questions Answered

Why COBOL sits in the middle?

The core idea of the methodology is not to convert Assembler to Java directly. First, the code is turned into COBOL, an older language for business computing that reads almost like a description of operations. Then the AWS Transform service converts the COBOL into applications on Java Spring Boot, that is, into ordinary services for the AWS cloud. According to AWS, this route is more reliable than a direct one.

What are the key details on The five stages step by step?

Stage one is Business Rules Extraction (BRE). A model in Amazon Bedrock or in the Kiro IDE receives the Assembler code along with its documentation. It returns JSON: each rule with a number (BR001, BR002, and so on), a name, a purpose, input and output fields, and trigger conditions. There is also a mapping table showing which register or memory area becomes which variable in COBOL. The more context you give the model (data dictionaries, process descriptions), the more accurate the result.

What are the key details on Practical tips and limitations?

Some of the advice is useful beyond AWS. The model's temperature is set to 0 so that results do not change from run to run. For a large number of programs, the same prompts are called through the Bedrock Converse API, and each result is stored in an Amazon S3 bucket, where the next stage picks it up. Testing should be done on anonymized data, not on production or personal data. The model should be chosen for strong code understanding and a large context window, because Assembler programs are long and dense.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — AWS shows how to move banking Assembler code to Java through COBOL in five stages https://news.hamidun.com/en/news/17263/aws-shows-how-to-move-banking-assembler-code-to-java-through

What do you think?
Loading comments…