ArticleslgStudy

computer science

COBOL

COBOL is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand COBOL rather than just read about it. In short: COBOL (Common Business-Oriented Language; ) is a compiled English-like computer programming language designed for business use. It is an imperative, procedural, and, since 2002, object-oriented language.

COBOL — main illustration
COBOL — illustration

Key takeaways

  • COBOL belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect COBOL to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of COBOL from memory before moving on to harder problems.

Reference excerpt

COBOL (Common Business-Oriented Language; ) is a compiled English-like computer programming language designed for business use. It is an imperative, procedural, and, since 2002, object-oriented language. COBOL is primarily used in business, finance, and administrative systems for companies and governments. COBOL is still widely used in applications deployed on mainframe computers, such as large-scale batch and transaction processing jobs. Many large financial institutions were developing new systems in the language as late as 2006, but most programming in COBOL today is purely to maintain existing applications. Programs are being moved to new platforms, rewritten in modern languages, or replaced with other software. COBOL's design was started in 1959 by CODASYL and was partly based on the programming language FLOW-MATIC, designed by Grace Hopper. It was created as part of a US Department of Defense effort to create a portable programming language for data processing. It was originally seen as a stopgap, but the Defense Department promptly pressured computer manufacturers to provide it, resulting in its widespread adoption. It was standardized in 1968 and has been revised five times. Expansions include support for structured and object-oriented programming. The current standard is ISO/IEC 1989:2023. COBOL statements have prose syntax such as MOVE x TO y, which was designed to be self-documenting and highly readable. However, it is verbose and uses over 300 reserved words compared to the succinct and mathematically inspired syntax of other languages. Lacking a large standard library, the standard specifies 43 statements, 87 functions, and just one class. COBOL code is split into four divisions (identification, environment, data, and procedure), containing a rigid hierarchy of sections, paragraphs, and sentences. COBOL has been criticized for its verbosity, design process, and poor support for structured programming. These weaknesses often result in monolithic programs that are hard to comprehend as a whole, despite their local readability.

History and specification

Background In the late 1950s, computer users and manufacturers were becoming concerned about the rising cost of programming. A 1959 survey had found that in any data processing installation, the programming cost US$800,000 on average and that translating programs to run on new hardware would cost US$600,000. At a time when new programming languages were proliferating, the same survey suggested that if a common business-oriented language were used, conversion would be far cheaper and faster. On 8 April 1959, Mary K. Hawes, a computer scientist at Burroughs Corporation, called a meeting of representatives from academia, computer users, and manufacturers at the University of Pennsylvania to organize a formal meeting on common business languages. Representatives included Grace Hopper (inventor of the English-like data processing language FLOW-MATIC), Jean Sammet, and Saul Gorn. At the April meeting, the group asked the Department of Defense (DoD) to sponsor an effort to create a common business language. The delegation impressed Charles A. Phillips, director of the Data System Research Staff at the DoD, who thought that they "thoroughly understood" the DoD's problems. The DoD operated 225 computers, had 175 more on order, and had spent over $200 million on implementing programs to run on them. Portable programs would save time, reduce costs, and ease modernization. Charles Phillips agreed to sponsor the meeting, and tasked the delegation with drafting the agenda.

… excerpt ends here. Continue reading the full article.

Illustrations

COBOL illustration
COBOL: COBOL program deck of punched cards, from the 1970s
COBOL program deck of punched cards, from the 1970s
COBOL: 3270 session
3270 session

Worked examples

Example 1 — a first encounter with COBOL

Start with the simplest possible case. Write down what COBOL claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to COBOL before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about COBOL ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of COBOL

In research
COBOL appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses COBOL in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
COBOL is common in secondary-school and first-year university syllabi. It links to neighbouring topics .NET programming languages, 1959 software, COBOL, so understanding it makes those chapters shorter.
In everyday life
Look for COBOL outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “COBOL” →

How to study COBOL in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what COBOL means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain COBOL out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is COBOL in simple terms?

COBOL (Common Business-Oriented Language; ) is a compiled English-like computer programming language designed for business use. It is an imperative, procedural, and, since 2002, object-oriented language.

Why does COBOL matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study COBOL?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on COBOL.

Tags

  • .NET programming languages
  • 1959 software
  • COBOL
  • Class-based programming languages
  • Compiled programming languages
  • Computer-related introductions in 1959
  • Cross-platform software
  • Object-oriented programming languages
  • Procedural programming languages
  • Programming languages created by women
  • Programming languages created in 1959
  • Programming languages with an ANSI standard

Keep exploring