HomeArticle

It's already 2026, yet Americans are still using codes written back in 1959 to withdraw money.

差评2026-12-02 08:14
AI has become the successor to the legacy code written by veteran programmers.

Have you ever encountered such a legacy program in your company that no one knows who wrote it back in the day, triggers a Bug whenever you touch it, yet you have to use it every single day?

Our team at XiaCha once had such a system before, which is the "Big News" section of our official WeChat account ⬇️

In this bordered template, pasting a formatted text or pressing an extra enter key would mess up the entire layout. The border would either split into two separate parts, or all formatting would be completely disrupted, and even pressing Ctrl+Z could not revert the changes.

This template has been used for ten years. Every time people do the layout for the "Big News" section, they can only pray that their hands do not shake.

Of course, such legacy systems at our company at most only cause layout issues.

But what many people may not expect is that the core businesses of the current US financial and government administration systems are also running on a set of legacy systems. The programming language used to write this set of systems is called COBOL, which was invented back in 1959.

Reuters estimated in 2017 that 3 trillion US dollars of commercial transactions are processed by COBOL systems every day. 95% of ATM withdrawals and 80% of offline card swiping transactions across the United States are also running on COBOL programs behind the scenes.

Once such a core system malfunctions, the consequences are far more serious than just a broken layout...

When the COVID-19 pandemic first broke out in 2020, a large number of people in the US lost their jobs, and more than 16 million people applied for unemployment benefits in just three weeks. The number of applications in New Jersey surged by 1600% overnight, and the 40-plus-year-old legacy system directly failed to handle the load.

It was at this moment that people realized there were barely any young people on the market who knew how to write COBOL.

The governor of New Jersey had no choice but to publicly recruit volunteers who know COBOL for emergency support. I guess those senior programmers hadn't even had time to put away their fishing rods when they received the call.

Since legacy systems are so difficult to maintain, why don't you Americans just rewrite a new set from scratch?

In fact, some companies have already tried to do so, but the results have not been very satisfactory so far.

Last March, the US Department of Government Efficiency (DOGE) launched by Elon Musk announced that it would completely rewrite the 60 million lines of COBOL code of the US Social Security Administration within a few months. However, probably due to the extremely high difficulty, there has been no follow-up news about this matter ever since.

This February, Anthropic claimed that Claude Code could help people sort out the dependencies of legacy code, complete missing documents, and shorten the renovation period of old COBOL systems from several years to several quarters. But it ended up being nothing more than empty talk — who exactly would carry out the renovation work?

It was not until October 19 that OpenAI released a progress report, stating that the accuracy of translating legacy antique programs written in COBOL into modern languages had been increased from 5.4% in the previous generation to 97.9%.

So here comes the question: why is this old programming language so difficult to replace? We have to start from the origin of COBOL to find the answer.

In 1959, the US Department of Defense gathered a group of top computer experts for a meeting at the Pentagon, discussing the design of a general-purpose business programming language.

At that time, the Department of Defense had 225 mainframe computers in stock, but they found that computers produced by different manufacturers were incompatible with each other, and the same program could not run on a different machine.

Want to make them compatible? Sorry, writing a program in one computer room cost an average of 800,000 US dollars, and porting the program from Machine A to Machine B would cost another 600,000 US dollars.

Cover of the first edition of COBOL specification report

Therefore, the Department of Defense made the final decision to develop a general-purpose business language that can run on all computers. It required every computer manufacturer to support this language, and government departments and major enterprises also adopted it on a large scale later.

That's how COBOL became popular. By 1970, it had become the most widely used programming language in the world.

Early development of COBOL systems

To be fair, COBOL became popular back then precisely because it was more suitable for financial systems.

Because it was designed for commercial use from the very beginning, its syntax is close to English, and it can perform precise calculations with fixed decimal places, which is very suitable for accounting scenarios.

As a result, banks, insurance companies and government departments in the US all used it to build their core systems. Coupled with the long-standing principle among programmers of "never fix what isn't broken", this set of systems has been in use all the way to today.

The code itself will never grow old no matter how long it is used, but the programmers who wrote it will. When the system needed maintenance later, people suddenly realized that there were almost no new programmers who knew COBOL at all.

This led to the earlier scenario where states were rushing to recruit senior programmers. At that time, an outsourcing company called COBOL Cowboys in the US became very popular, which specifically rehired retired programmers to take on jobs. The youngest employee in the company was already over 50 years old, and some of the elderly programmers were even over 80 years old.

They stated publicly at that time that as long as any state government needed help, they could pick up their thermos and come out for emergency support at any time.

Some readers may wonder at this point: since there is such a severe shortage of people in the market, the salary should be pretty good, so why don't young people go to learn it? I would go learn it if I were them.

Because learning this language really has no promising career path.

In 2021, an executive of IT service company Advanced said in an interview that most universities no longer offer mainframe courses, and there are no new projects on the market that use COBOL for development. In other words, after you spend great efforts learning it, the only job you can find is to maintain the decades-old legacy systems left in banks.

Poster of COBOL introductory summer course

Major banks have long wanted to replace this set of systems, but replacing the core system of a financial institution is as risky as trimming the nose hair of a sprinter who is running at full speed on the track.

For example, in 2008, the Commonwealth Bank of Australia decided to replace its 45-year-old legacy system, which was originally planned to be completed in 4 years with an investment of 580 million Australian dollars. But when they actually started the project, they found it was a bottomless pit. The project was not completed until 2012, with the total cost rising to 1.1 billion Australian dollars, almost doubling the original budget.

At this point, everyone can probably understand why people are now counting on AI with strong coding capabilities to help with this task.

But it is a bit awkward to say that AI has actually been stuck on COBOL for a very long time, because it simply cannot find enough COBOL code for training.

A paper co-authored by the University of Illinois and IBM Research mentioned that the total existing COBOL code in the world may exceed 775 billion lines, but most of them are stored internally in banks and government agencies and have never been made public.

Without sufficient training data, AI naturally cannot write COBOL code correctly.

That's why the previous generation of OpenAI's model only had a 5.4% accuracy rate in translating COBOL, and it was not until recently that the figure was raised to 97.9%. Of course, OpenAI did not mention a single word about the reason for this improvement, and kept all the details secret...

However, to prove that it has real capabilities this time, OpenAI also demonstrated a set of migration tests. They asked the new model GPT-6.1 Sol to rewrite COBOL into modern languages such as C++, Java and Python, then ran the new code with unpublished test data, requiring that the calculation results of the new program must be exactly the same as those of the old program, not a single byte can be different.

Of course, even if the AI gets full marks in the tests, it does not mean that we can safely hand over the banking system to AI right now. People still have to check every line of code one by one to make sure the new code will not make any mistakes in the actual business environment.

After all, in the financial industry, a 99.9% accuracy rate means 100% probability of accidents.

Although the verification process may still take a very long time, at least COBOL has finally got its successor now...

To be honest, this may be one of the most valuable use cases of AI, and similar things have happened more than once.

In 2025, DeepMind's AI model Aeneas helped historians complete the incomplete ancient Roman inscriptions, and could also judge their age and origin. A team from the University of Munich used machine learning to match the fragments of cuneiform clay tablets, found 20 fragments of the Epic of Gilgamesh, and retrieved more than 100 lines of long-lost verses.

We used to think that AI is the Terminator that comes roaring in to crush everything from the old era. But now it seems that as long as it is used properly, AI can also help to properly preserve these old techniques and ancient civilizations.

Image and data sources:

ChatGPT official website

Cobol Programmers Answer Call to Shore Up Unemployment Benefits Systems