# COBOL, JCL and Fortran code for AI training

> AI labs license private COBOL, JCL and Fortran source code to train coding models that maintain and modernise legacy systems. What qualifies, what owners keep, and how licensing works.

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

AI labs need private COBOL, JCL and Fortran source code to train models that maintain and modernise legacy systems, because very little of it is public. Datadhara licenses cleaned copies from the companies that own it, non-exclusively and for AI training only. Owners keep their IP and are paid a one-off fee.

## Why labs want legacy code

Banks, insurers, governments and engineering firms still run on COBOL and Fortran, and coding models are increasingly asked to read, fix and translate it. Public examples are scarce and mostly textbook-sized. Real systems, with their copybooks, job streams, numerical solvers and decades of patches, almost never appear on the open web. That makes private legacy code one of the hardest kinds of training data to find.

## What qualifies

| Language | Typical sources | What adds value |
|---|---|---|
| **COBOL** | Banking and credit-union cores, insurance policy administration, payroll, billing, ERP, public-sector systems | Copybooks, CICS or batch programs, DB2 or VSAM access, change history |
| **JCL** | Mainframe batch operations | Job streams alongside the programs they run, PROCs, scheduling definitions |
| **Fortran** | Engineering and scientific software: CFD, structural, energy, hydrology, reservoir and process simulation | Large solvers, pre-processors, test cases and input decks |
| **Also** | PL/I, RPG, Natural, Assembler | Real production use |

The code must be yours, meaning not written for a client who owns it, and never released as open source or public domain. Retired and superseded versions qualify.

## What the owner keeps

- **Ownership and copyright.** You can keep selling and licensing your software exactly as before.
- **Control.** We prepare the cleaned copy and you approve it before anything is released.
- **Protection.** The code is used only to train and test AI models. It is never published, resold or distributed as software, and it can't be used to run a competing product.

## What cleaning means

We remove personal names, email addresses, phone numbers, credentials and internal paths, and collapse repeated header blocks. The program logic isn't changed. Cleaning is done at our cost.

## How it works

1. **Tell us roughly what you have:** language, product, approximate lines or number of programs, and years.
2. **Send two or three representative files** so we can price it.
3. **Agree a short licence:** non-exclusive, AI training only, a one-off fee.
4. **Approve the cleaned copy;** we deliver it and you're paid.

## Further reading

- [Data we're buying now](https://datadhara.in/data-were-buying)
- [Private codebases with git history](https://datadhara.in/code-data-for-ai)
- [Where AI labs license COBOL and Fortran (for buyers)](https://datadhara.in/legacy-code-training-data)
- [How licensing to AI labs works](https://datadhara.in/sell-your-company-data)

## Frequently asked questions

### Can I license old versions of software I still sell?

Yes. Many owners license a superseded version. The licence forbids using the code to build or run a competing product, and your current product is unaffected.

### Is government-funded code eligible?

It depends on who holds the rights. If your code was developed under a government contract or with a research lab, tell us and we'll check before anything is agreed.

### How is legacy code priced?

On size, language, quality and how unusual the domain is. We give you a figure after seeing a few sample files.

### Who sees the code?

Only the AI lab that licenses it, under confidentiality, to train its coding models. It is never shown to end users.

---

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