Accelerating Mainframe Modernization - Modernize Legacy COBOL in Months with AWS Transform
Learn about mainframe modernization with AWS Transform for mainframe. This article covers automated COBOL code analysis, Java conversion, and phased migration strategies.
Challenges of Mainframe Modernization
Many financial institutions, insurance companies, and government agencies have been running core business operations on IBM z/OS mainframes for decades. Millions of lines of COBOL code, CICS transaction processing, IMS and DB2 databases, and JCL batch jobs are deeply intertwined, and the engineers who understand the full picture are retiring. Traditional modernization required months of manual code analysis and years of conversion, with project delays and cost overruns becoming the norm. AWS Transform for mainframe tackles this challenge head-on using agentic AI. Generally available since May 2025, it provides AI agents specialized in mainframe modernization that automate everything from code analysis to conversion and test generation.
Code Analysis and Dependency Visualization
AWS Transform automatically scans the mainframe codebase, classifying components such as COBOL programs, copybooks, JCL, BMS maps, and CICS transaction definitions. It visualizes call relationships between programs, data flows, and shared copybook dependencies as a graph, clarifying the scope of impact for conversion. Cyclomatic complexity analysis identifies high-complexity programs that are difficult to convert, narrowing down where manual intervention is needed. It also detects duplicate component names and program IDs, resolving naming conflicts common in large codebases before migration begins. Import/export functionality for file classification enables sharing analysis results across teams and integrating with external tools.
Automated COBOL-to-Java Conversion and Reimagine
Once code analysis is complete, AI agents automatically convert COBOL programs to Java. Rather than simple syntax translation, it semantically converts COBOL-specific data types (COMP-3, PIC clauses), file I/O, CICS commands, and DB2 SQL into their Java equivalents. Automated tests are generated for the converted code to verify behavioral equivalence with the original COBOL programs. The Reimagine feature proposes designs for decomposing monolithic mainframe applications into microservices. It defines service boundaries based on business domains and outlines a migration path to a loosely coupled, API-based architecture. Conversion follows a recommended wave approach rather than a big-bang migration, starting with low-business-risk modules and cycling through conversion, testing, and deployment in each wave. For a comprehensive study of COBOL modernization migration strategies, refer to technical books (Amazon).
Transform Pricing
AWS Transform for Mainframe pricing is based on the number of code lines to be converted. Specific unit prices are determined through individual quotes with the AWS account team, but investments in the range of tens of millions of yen are typical for converting codebases of several million lines of COBOL. However, compared to annual mainframe license costs (often in the hundreds of millions of yen), the investment can typically be recouped within 1-2 years. Post-conversion AWS infrastructure costs are expected to be 50-70% lower than mainframe operating costs.
Summary - Guidelines for Mainframe Modernization
AWS Transform for mainframe uses agentic AI for code analysis, automated conversion, and test generation, reducing mainframe modernization timelines from years to months. The key to success is starting with code analysis to understand the full picture, then progressively converting modules starting with those of lower complexity. By leveraging the Reimagine feature, you can go beyond simple rehosting and envision a full re-architecture to cloud-native.