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

> For AI labs and coding-model teams: where private COBOL, JCL and Fortran comes from, what to check before licensing it, and the never-published production Fortran Datadhara can sample now.

Source: https://datadhara.in/legacy-code-training-data  
Publisher: Datadhara (https://datadhara.in)  
Last updated: 2026-12-03

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](https://openai.com/index/low-resource-programming-languages/) 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

| Owner | Typical code |
|---|---|
| Banks and credit unions | COBOL cores, CICS transactions, batch JCL, copybooks |
| Insurers | Policy administration and claims in COBOL and PL/I |
| Engineering and scientific software firms | Fortran solvers for structures, fluids, energy and process simulation, with input decks and test cases |
| Payroll, billing and ERP vendors | COBOL and RPG applications |
| Public-sector bodies | Tax, 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

- **Production use.** Code that ran in production for years, with its patches and workarounds, teaches more than tutorials or student exercises.
- **The surrounding files.** JCL, build scripts, copybooks, include files, input decks and test cases let a model learn how the system runs, as well as how it reads.
- **Size and history.** Line counts by language, number of programs or modules, and the years covered.
- **Rights.** The owner must hold the copyright. Code written for a client usually belongs to the client. Code built under a government contract can carry restricted-rights notices, so ask who keeps commercial licensing rights.
- **Cleaning.** Names, email addresses, credentials and internal paths removed, with the program logic unchanged.
- **Licence terms.** Training and evaluation use, no redistribution, no product that competes with the owner's, and no model built to reproduce the code verbatim. Our [sample licence](https://datadhara.in/sample-data-licence) shows the structure owners sign.

## Fortran we can sample now

|  |  |
|---|---|
| **What** | Source code of a commercial engineering simulation program |
| **Size** | About 270,000 lines of Fortran |
| **Never published** | Privately owned and copyrighted. It has never been released as open source |
| **Licence** | Non-exclusive, for training and evaluation |
| **Sample** | On 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](https://calendar.app.google/Vgeb6fZafM2bkQQr5).

Own legacy code and want to license it? See [licensing COBOL, JCL and Fortran for AI training](https://datadhara.in/legacy-code-for-ai).

## Frequently asked 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.

---

Contact: hello@datadhara.in | Book 15 minutes: https://calendar.app.google/Vgeb6fZafM2bkQQr5
