ArticleslgStudy

computer science

Computer programming in the punched card era

Computer programming in the punched card era 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 Computer programming in the punched card era rather than just read about it. In short: From the invention of computer programming languages up to the mid-1970s, most computer programmers created, edited and stored their programs line by line on punch cards. Punched cards A punched card is a flexible write-once medium that encodes data, most commonly 80 characters.

Computer programming in the punched card era — main illustration
Computer programming in the punched card era — illustration

Key takeaways

  • Computer programming in the punched card era 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 Computer programming in the punched card era to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Computer programming in the punched card era from memory before moving on to harder problems.

Reference excerpt

From the invention of computer programming languages up to the mid-1970s, most computer programmers created, edited and stored their programs line by line on punch cards.

Punched cards

A punched card is a flexible write-once medium that encodes data, most commonly 80 characters. Groups or "decks" of cards form programs and collections of data. The term is often used interchangeably with punch card, the difference being that an unused card is a "punch card," but once information had been encoded by punching holes in the card, it was now a "punched card." For simplicity, this article will use the term punched card to refer to either. Often, programmers first wrote their program out on special forms, called coding sheets. It was important to take care to distinguish the digit zero from the letter O, the digit one from the letter I, eight from B, two from Z, and so on, using local conventions such as the "slashed zero". These forms were then taken by keypunch operators, who used a keypunch machine such as the IBM 026 (later IBM 029) to punch the deck. Often another keypunch operator would then take that deck and re-punch from the coding sheets – but using a "verifier" such as the IBM 059 that checked that the original punching had no errors. A typing error generally necessitated re-punching an entire card. The editing of programs was facilitated by reorganizing the cards, and removing or replacing the lines that had changed; programs were backed up by duplicating the deck, or writing it to magnetic tape. In smaller organizations programmers might do their own punching, and in all cases would often have access to a keypunch to make small changes to a deck.

Work environment The description below describes an all-IBM shop (a "shop" was programmer jargon for a programming site). Shops using other brands of mainframes (or minicomputers) would have had similar equipment from different manufacturers, such as NCR, ICL, Hewlett-Packard (HP) or Control Data. However, they would have had IBM 029 keypunches. IBM's huge size and industry footprint often caused many of their conventions to be adopted by other vendors, so the example below is fairly similar to most places, even in non-IBM shops. A typical corporate or university computer installation would have had a suite of rooms, with a large, access-restricted, air-conditioned room for the computer (similar to today's server room) and a smaller quieter adjacent room for submitting jobs. Nearby would be a room full of keypunch machines for programmer use. An IBM 407 Accounting Machine might be set up to allow newly created or edited programs to be listed (printed out on fan-fold paper) for proofreading. An IBM 519 might be provided to reproduce program decks for backup or to punch sequential numbers in columns 73-80. In such mainframe installations, known as "closed shops," programmers submitted the program decks, often followed by data cards to be read by the program, to a person working behind a counter in the computer room. During peak times, it was common to stand in line waiting to submit a deck. To solve that problem, the card reader could be reinstalled (or initially installed) outside of the computer room to allow programmers to do "self-service" job submission. Many computer installations used cards with the opposite corner cut (sometimes no corner cut) as "job separators", so that an operator could stack several job decks in the card reader at the same time and be able to quickly separate the decks manually when they removed them from the stacker. These cards (e.g., a JCL "JOB" card to start a new job) were often pre-punched in large quantities in advance. This was especially useful when the main computer did not read the cards directly, but instead read their images from magnetic tape that was prepared offline by smaller computers such as the IBM 1401. After reading the cards in, the computer operator would return the card deck – typically to one of a set of alphabetically labelled cubby holes, based on the programmer's last initial. Because programs were run in batch-mode processing it might have been a considerable time before any hardcopy printed or punched output was produced, and put into these same cubby holes – however, on a lightly-used system, it was possible to make alterations and rerun a program in less than an hour. Dedicated programmers might have stayed up well past midnight to get a few quick turnarounds. Use of this expensive equipment was often charged to a user's account. A mainframe computer could cost millions of dollars and usage was measured in seconds per job. Smaller computers like the IBM 1620 and 1130, and minicomputers such as the PDP-11 were less expensive, and often run as an "open shop", where programmers had exclusive use of the computer for a block of time. A keypunch was usually located nearby for quick corrections – although many of these smaller machines ran from punched tape.

Identification and sequence

… excerpt ends here. Continue reading the full article.

Illustrations

Computer programming in the punched card era: Student programmers at the Technische Hochschule in Aachen, West Germany in 1970 using IBM 026 keypunches.
Student programmers at the Technische Hochschule in Aachen, West Germany in 1970 using IBM 026 keypunches.
Computer programming in the punched card era: Punched card from a Fortran program.
Punched card from a Fortran program.
Computer programming in the punched card era: A single program deck, with individual subroutines marked. The markings show the effects of editing, as cards are replaced or reordered.
A single program deck, with individual subroutines marked. The markings show the effects of editing, as cards are replaced or reordered.
Computer programming in the punched card era illustration
Computer programming in the punched card era illustration

Worked examples

Example 1 — a first encounter with Computer programming in the punched card era

Start with the simplest possible case. Write down what Computer programming in the punched card era 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 Computer programming in the punched card era 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 Computer programming in the punched card era 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 Computer programming in the punched card era

In research
Computer programming in the punched card era 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 Computer programming in the punched card era 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
Computer programming in the punched card era is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer programming, History of software, so understanding it makes those chapters shorter.
In everyday life
Look for Computer programming in the punched card era 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 “Computer programming in the punched card era” →

How to study Computer programming in the punched card era in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Computer programming in the punched card era 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 Computer programming in the punched card era out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Computer programming in the punched card era in simple terms?

From the invention of computer programming languages up to the mid-1970s, most computer programmers created, edited and stored their programs line by line on punch cards. Punched cards A punched card is a flexible write-once medium that encodes data, most commonly 80 characters.

Why does Computer programming in the punched card era 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 Computer programming in the punched card era?

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 Computer programming in the punched card era.

Tags

  • Computer programming
  • History of software

Keep exploring