← See All Success Stories & Enterprise Clients

Lessons Learned from an IBM CICS COBOL-to-Java Migration

Project Background

This page summarizes practical lessons learned during an enterprise government modernization project involving IBM COBOL, CICS, VSAM, and batch applications. Many of these findings subsequently influenced enhancements to SoftwareMining's automated, rule-based COBOL-to-Java and COBOL-to-C# converter and conversion tools and runtime libraries. Rather than relying on probabilistic generative AI models, SoftwareMining's deterministic engine ensures predictable, maintainable output across enterprise migrations.

Information Analytics Incorporated (IAI), a systems integrator working for a US state government organization, engaged SoftwareMining to assist with the modernization of IBM COBOL CICS and VSAM applications to Java and Oracle. The project included online and batch applications, while the associated JCL was translated separately by IAI. SoftwareMining also contributed to testing and technical support during the delivery phase.

One of the most important observations from the project was that the long-term success of an enterprise modernization depends not only on functional correctness, but also on the readability and maintainability of the generated target application. Developers should be able to understand, modify, and test the translated code without requiring extensive COBOL expertise.

The project also reinforced the importance of minimizing unnecessary dependencies on legacy architectures. Wherever practical, SoftwareMining restructures COBOL control flow into standard Java or C# constructs while preserving application behaviour. These proven modernization lessons directly informed subsequent large-scale enterprise projects - including the ING Bank Mainframe Modernization (Java) and Verisk Insurance Services' Mainframe Refactoring (C# / .NET) - where mission-critical workloads were successfully migrated within strict enterprise processing windows.


View COBOL-to-Java and C# Conversion Features

The Following Sections Summarize the Principal Technical Lessons Learned from the Project

VSAM Data Migration

Before VSAM structures could be migrated to SQL tables, a manual process was required to identify which structures are the same. Once they were identified, the information was fed to the conversion tool in order to generate code addressing the same tables in both cases. This type of analysis is best performed by COBOL developers who are familiar with the system. Do this before the last expert leaves the organization! Oracle was selected as the target database, and Oracle utilities were then used for the migration of VSAM data files to the database.



Data Access Performance � VSAM and SQL Are Different Animals

The process of moving from VSAM to SQL was a lot simpler than in rehosting projects where VSAM APIs are manually replaced by custom-made SQL statements. This is because the new object-relational Java-classes generate the SQL at runtime automatically/dynamically. For example, to read the customer record, the system merely writes: customer.read(). In this case, all SQL statements are automatically generated by the Java framework - similar to the Java HIBERNATE framework.

However, the big change in architecture (VSAM to SQL) caused a few performance issues which needed addressing. The issues were caused because, when COBOL reads a data-file using an index, the system merely places the file-pointer to the beginning of that index. To achieve the same thing in a database, an SQL statement has to be issued to read all records which match the index / selection-criteria. Potentially millions and millions of records could match, creating a huge load on the database. The solution was to provide sets of APIs to developers, allowing them to effectively reduce the number of records matching the search result. Four different solutions were evaluated and developed within the Java-framework layer. Two of them were used successfully to overcome the performance issues. The selected solutions did not require developers to rewrite SQL statements � but merely used new object-relational APIs to reduce the size of the search space.



From BMS to HTML

Managing the end user's expectations became very important when dealing with new screens. For example, the original application was designed to utilize F1 or F5 keys for a particular function. Unfortunately, Internet Explorer launches the help screens when the F1 key is pressed, and F5 always refreshes the page. The users have to click on F1 and F5 buttons rather than pressing the keyboard keys. Of course, there are ways of disabling the default functionality of the browsers, but this had other implications.



Keeping Original Developers Involved

Over the course of this project, the importance of the original COBOL developers became very clear. The testing phase (where most of the time/money was spent) went a lot more smoothly when one of the original developers was involved.

Knowledge of how the application is supposed to behave, the intention of a particular piece of code, and whether it is still being utilised, turned out to be extremely helpful. Our experience showed it would be beneficial to retrain existing developers in Java, and to allow them to continue their involvement with the application. We learned that it's very helpful to conduct migrations before the original developers move on to new roles or jobs.