Contact Us

Micro Focus COBOL to Java
and C# Migration Services

Modernize Software converts Micro Focus COBOL to Java or C# with DMS, our symbolic AI and enhanced compiler technology. That covers Net Express, Server Express and Visual COBOL code. The output is native Java or C#, with no COBOL compiler or runtime license left behind.

Micro Focus COBOL now belongs to Rocket Software, after OpenText sold the COBOL business in 2024. Net Express and Server Express are maintained only for existing customers. If you are planning your next step, DMS gives you one that ends the COBOL license.

30+ yrs
Compiler Engineering
40+
Source Languages
PhD
Average Team Seniority
TRUSTED BY
NASA
Boeing
RTX
Rockwell Automation
Global Shop Solutions
BlackRock
ANZ
Northrop Grumman
Emerson

Why Micro Focus COBOL needs a dialect-aware translator

In Micro Focus COBOL, compiler directives change what a line of code means. DIALECT, ARITHMETIC and TRUNC can change rounding and truncation, and $SET can change them partway through a file. A converter that ignores directives produces Java or C# that compiles and gives different answers.

Option
What you get
What you still have
OptionUpgrade to Rocket Visual COBOL
What you getA supported compiler, including JVM and .NET output.
What you still haveCOBOL source, COBOL developers and a compiler license.
OptionGen AI conversion
What you getFast first drafts of Java or C#.
What you still haveOutput that changes from run to run, and no proof each line behaves the same.
OptionDMS translation
What you getDeterministic Java or C# you own outright.
What you still haveYour business rules. Nothing else.

Micro Focus COBOL to Java

Level-78 constants become static final fields. CBL_ library routines become calls into a small support library, so the code stays readable and testable.

Micro Focus COBOL
0178 MAX-LINES VALUE 60.
0201 WS-NAME PIC X(30).
0301 WS-LEN PIC X(4) COMP-5 VALUE 30.
0401 WS-LINE-COUNT PIC 9(3).
05...
06CALL "CBL_TOUPPER" USING WS-NAME BY VALUE WS-LEN
07ADD 1 TO WS-LINE-COUNT
08IF WS-LINE-COUNT > MAX-LINES
09 PERFORM NEW-PAGE
10END-IF
Generated Java
01static final int MAX_LINES = 60;
02String wsName; // PIC X(30)
03int wsLineCount; // PIC 9(3)
04...
05wsName = CblRoutines.toUpper(wsName, 30);
06wsLineCount = (wsLineCount + 1) % 1000; // PIC 9(3) keeps 3 digits
07if (wsLineCount > MAX_LINES) {
08 newPage();
09}

Micro Focus COBOL to C#

The same code in C# uses const and the same support library. Teams already on Visual COBOL for .NET usually choose C#. For a deeper look at the C# options, read our guide Micro Focus COBOL to C#: migration paths for .NET teams.

Generated C#C#
01const int MaxLines = 60;
02string wsName; // PIC X(30)
03int wsLineCount; // PIC 9(3)
04...
05wsName = CblRoutines.ToUpper(wsName, 30);
06wsLineCount = (wsLineCount + 1) % 1000; // PIC 9(3) keeps 3 digits
07if (wsLineCount > MaxLines)
08{
09 NewPage();
10}

Simplified example. The real output follows your naming and coding standards, and support-library names vary by project.

Micro Focus COBOL constructs DMS handles

These are the Micro Focus features generic converters get wrong. Each one has a named translation rule.

Construct
What goes wrong
What DMS generates
ConstructDIALECT, ARITHMETIC and TRUNC directives
What goes wrongThe same code rounds and truncates differently.
What DMS generatesExplicit scale, rounding and truncation, matching your directive settings.
Construct$SET inside a source file
What goes wrongSettings change partway through a program.
What DMS generatesThe effective setting worked out for each statement.
ConstructCOMP-5 and COMP-X
What goes wrongNative binary sizes and unsigned values break.
What DMS generatesInteger types sized to the declaration.
ConstructLevel-78 constants
What goes wrongInlined as magic numbers.
What DMS generatesstatic final fields in Java, const in C#.
ConstructCBL_ routines and X"91" calls
What goes wrongNo Java or .NET equivalent exists.
What DMS generatesMethods in a small support library you own.
ConstructPERFORM THRU under PERFORM-TYPE
What goes wrongExit behavior changes.
What DMS generatesMethods that keep the original exit behavior.
ConstructLine sequential files
What goes wrongTrailing spaces and record ends change.
What DMS generatesText file I/O with the same record rules.
ConstructIndexed files (IDXFORMAT, EXTFH, Fileshare)
What goes wrongKeys and file status codes drift.
What DMS generatesRelational tables through JPA or Entity Framework Core, with the same status codes.
ConstructOpenESQL EXEC SQL
What goes wrongCursors and null indicators break.
What DMS generatesJDBC or ADO.NET with the same cursors and indicators.

What we scope before quoting

Screens

SCREEN SECTION, Adis ACCEPT and DISPLAY, Dialog System and Panels V2 are listed in the assessment. The logic behind each screen translates with the program. How the user interface is rebuilt is agreed with you before the fixed price.

Enterprise Server workloads

EXEC CICS, IMS calls and JCL that came off the mainframe are listed the same way, so the quote covers what your estate really contains.

How a Micro Focus COBOL migration runs

Step
What happens
Step1. Assess
What happensWe inventory programs, copybooks, directive files, CBL_ calls, file types and screens, and size the translator configuration against your real code. You get a fixed-price quote.
Step2. Configure
What happensWe tune the translation rules on a copy of your code. Your team keeps working. You review sample output.
Step3. Convert
What happensA fresh snapshot converts in one automated pass, so every change made during the project comes across. No code freeze.
Step4. Verify
What happensMicro Focus COBOL and the new system run the same inputs side by side. Outputs, files and status codes are compared until there are no unexplained differences.

Micro Focus COBOL to Java and C# FAQ

General questions

Yes. DMS converts Net Express, Server Express and Visual COBOL programs to Java, typically Spring Boot with JPA or JDBC. Directive settings are applied, so arithmetic and truncation match.

Yes. The output is C# on .NET 10 with ASP.NET Core and Entity Framework Core. Packed decimal becomes the C# decimal type with the same precision.

Visual COBOL changes where the code runs, not what it is written in. You still need COBOL developers and a compiler license. Code already on Visual COBOL is usually simpler to translate.

DIALECT, ARITHMETIC, TRUNC, IBMCOMP, PERFORM-TYPE and the rest are read from your directive files and $SET statements. Each program is translated under the settings it was really compiled with.

Each one maps to a named method in a small support library that ships with your code. You own that library like the rest of the output.

Indexed files move to relational tables, keeping keys and file status codes. Line sequential files stay text files with the same record rules. Data migration scripts ship with the code.

They are listed in the assessment, and the logic behind each screen translates with the program. How the user interface is rebuilt is agreed before the fixed price.

Choose the language your team will maintain. C# fits Microsoft shops and Visual COBOL for .NET code. Java fits JVM teams, Linux, AWS and Visual COBOL for JVM code. The process and testing are the same.

No. DMS translates with explicit rules, so the same input always gives the same output, and every difference traces to a rule. Gen AI is used only around the edges, for documentation and test generation.

With a free assessment under NDA. Send rough line counts, your Micro Focus product and version, and your target language. You get a complexity report, an automation estimate and a fixed-price quote.