Home / Data types / Legacy code / For AI labs

Where can AI labs license COBOL and Fortran code for training?

Most production COBOL and Fortran sits in private repositories at the banks, insurers, government agencies and engineering firms that wrote it, so labs license it from those owners directly or through a broker. Datadhara licenses cleaned copies from owners for training and evaluation, non-exclusively. We can sample about 270,000 lines of never-published production Fortran now.

Coding models are getting better at legacy languages quickly. In October 2026, OpenAI published scores showing one model generation moving from 21% to 83% on Fortran and from 11% to 72% on COBOL, which is still the hardest language they test. The page doesn't say what data produced the gain. Teams working on the same problem need real legacy systems to train and evaluate on, and very few are public.

Where private legacy code comes from

OwnerTypical code
Banks and credit unionsCOBOL cores, CICS transactions, batch JCL, copybooks
InsurersPolicy administration and claims in COBOL and PL/I
Engineering and scientific software firmsFortran solvers for structures, fluids, energy and process simulation, with input decks and test cases
Payroll, billing and ERP vendorsCOBOL and RPG applications
Public-sector bodiesTax, benefits and records systems

Owners rarely publish this code. Some will license a copy for AI training if the terms protect their product, which is the work we do: finding owners, agreeing terms, cleaning the code and documenting it.

What to check before you license legacy code

Fortran we can sample now

WhatSource code of a commercial engineering simulation program
SizeAbout 270,000 lines of Fortran
Never publishedPrivately owned and copyrighted. It has never been released as open source
LicenceNon-exclusive, for training and evaluation
SampleOn request, under NDA

We also source COBOL, JCL, PL/I and RPG on request. Tell us the language, domain and rough size you need, or book 15 minutes.

Own legacy code and want to license it? See licensing COBOL, JCL and Fortran for AI training.

Questions

Is there public COBOL and Fortran code to train on?

Some, on public code hosts, but it is mostly small programs and teaching examples. Large production systems with their job streams, copybooks and test cases are almost always private.

Can we use licensed legacy code for evaluation as well as training?

Yes. Our licences cover training and evaluation. They forbid redistributing the code and building a model designed to reproduce it verbatim.

Do you name the owner of the code?

Only after an NDA, and only with the owner's consent.

How is legacy code priced?

On size, language, domain and how complete the surrounding files are. We quote after you've seen a sample.

Tell us what your models are missing

A few lines is enough: the domain, the format, and roughly how much.

Request data →