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
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.
- Nov 27, 2026FCC Conditionally Approves SpaceX Plan for Up to 1 Million Satellites as Orbital AI Data Centers
- Nov 26, 2026Meta declined to test its Muse AI agent in the UK FCA's sandbox
- Nov 26, 2026US Regulator Conditionally Approves SpaceX's Plan for Up to 1 Million Starmind Data Center Satellites
- Nov 26, 2026Amazon Trainium3 Delivers 2.28x More Tokens per Dollar Than Nvidia GB300
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.
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.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
