A punched card can be read without any machine at all. The clerks of the 1890 United States census, working with cards that had no printing on them, learned to read the holes almost as fast as the tabulators did (Steven Lubar, "Do not fold, spindle or mutilate": a cultural history of the punch card, 1991). This post teaches the same skill for the card that came later and lasted longest, the 80-column card of International Business Machines (IBM), in the code of IBM's 029 keypunch. The card drawn in this post shows one line punched in that code, column by column; the text explains what you are looking at and gives exercises to try by hand, with answers at the end of each section. The history, from the silk looms of Lyon to the Brazilian census of 1960, is in the Learn article Punched cards: from the Jacquard loom to the 80-column card. The second half of this post is about the people whose lives went onto cards, because a card was never only a storage medium: it was also a form, a cheque, a bill and a ballot.

Hold it the right way

IBM's training manual names the parts. The top edge is the "12 edge" and the bottom edge the "9 edge", after the rows nearest to them; "face up" means the printed side up; cards went into machines "9 edge first" or "12 edge first" (IBM, An Introduction to IBM Punched Card Data Processing, F20-0074). Most cards had one top corner cut diagonally, so that a card facing the wrong way stood out at once in a deck; cards of different kinds were told apart by different cuts, colours or coloured stripes. The 80 columns are numbered 1 to 80 from left to right, and each has 12 punching positions, 960 in all, named from top to bottom 12, 11 (also called X), 0, 1, 2 and so on to 9.

The digits 0 to 9 were printed in their rows, so you can see where a hole sits. Douglas W. Jones of the University of Iowa, whose collection of cards and documents is the best technical guide to the subject, lists IBM 5081, with all digit rows marked, as the standard form behind many institutions' printed cards (Jones, Emulated punched card decks); IBM's manual adds that the positions for the digits 0 to 9 correspond to the numbers printed on the card, so the two zone rows above them carry no printed numbers. Along the top edge, above the 12 row, a printing keypunch printed each character over its column as it punched it. A card punched by a computer usually carried no printing; to make it readable, it went through an interpreter, and Jones notes that IBM's standard interpreters printed the first 64 columns on one line and the remaining 16 on the line below (Jones, Punched Cards: a brief illustrated technical history).

The card below is drawn to the standard dimensions given in the next section, with the line HELLO, WORLD punched from column 1 and printed along the 12 edge; its numbered labels name the edges, the zone and digit rows, the first and last columns and the corner cut.

Punched card, 80 columns by 12 rows, showing the line: HELLO, WORLDAn 80-column card drawn to the dimensions of ANSI X3.21, with the line punched in the code of the IBM 029 keypunch and printed along the top edge. Punched columns: column 1, H: 12-8; column 2, E: 12-5; column 3, L: 11-3; column 4, L: 11-3; column 5, O: 11-6; column 6, ,: 0-8-3; column 7, blank: no holes; column 8, W: 0-6; column 9, O: 11-6; column 10, R: 11-9; column 11, L: 11-3; column 12, D: 12-4.0123456789column 1, H: 12-8column 2, E: 12-5column 3, L: 11-3column 4, L: 11-3column 5, O: 11-6column 6, ,: 0-8-3column 7, blank: no holescolumn 8, W: 0-6column 9, O: 11-6column 10, R: 11-9column 11, L: 11-3column 12, D: 12-4
  1. 12 edge
  2. 9 edge
  3. Zone rows (12, 11, 0)
  4. Digit rows (1 to 9)
  5. Column 1
  6. Column 80
  7. Corner cut
An 80-column card drawn to the dimensions of ANSI X3.21 (1967): 7⅜ by 3¼ inches, 12 rows 0.250 inch apart, 80 columns 0.087 inch apart and rectangular holes of about 0.055 by 0.125 inch. The line HELLO, WORLD is punched in the code of the IBM 029 keypunch and printed along the top edge, as a printing keypunch did; the size of the corner cut is illustrative.

The grid, measured

The holes are not placed by eye. The American National Standards Institute (ANSI) standard for rectangular holes, X3.21-1967, adopted for United States government use as Federal Information Processing Standard () PUB 13, fixes every position (ANSI X3.21-1967 as FIPS PUB 13):

  • the card is 7⅜ by 3¼ inches (IBM gives the same, with a thickness of 0.007 inch);
  • the 12 rows lie on lines 0.250 inch apart, the first 0.250 inch below the top edge;
  • the 80 columns lie on lines 0.087 inch apart, the last 0.251 inch from the right edge;
  • every hole lies between two rectangles, 0.124 by 0.054 inch inside and 0.126 by 0.056 inch outside, the long side vertical;
  • a hole's centre may be 0.010 inch off its grid point when punched and 0.018 inch off when read.

Exercise 1. How far from the left edge is the centre of column 40, and how far from the top edge is row 5?

The standard's appendix says why it allows so much play. At 73 °F, moving a card between 20 and 75 per cent relative humidity can change its length by up to 0.018 inch and its width by up to 0.023 inch, and a card left above 75 per cent may never return to its size. The reading tolerance, 0.018 inch, is the same figure as the largest change in length, and the standard asks users to punch, read and store cards in the same conditions.

Answer 1. Column 80 is centred 0.251 inch from the right edge, and each column to its left adds 0.087 inch, so column 40 is 0.251 + 40 × 0.087 = 3.731 inches from the right edge, which is 7.375 − 3.731 = 3.644 inches from the left edge. Row 5 is the eighth row from the top (12, 11, 0, 1, 2, 3, 4, 5), so its centre is 8 × 0.250 = 2.000 inches below the top edge.

Read a column

IBM's manual for the 029 states the rule in a paragraph. A digit is one hole in its own row. A letter is two holes: a zone, 12, 11 or 0, and a digit; IBM's own examples are A, 12 and 1; N, 11 and 5; and Z, 0 and 9 (IBM, Reference Manual, Model 29 Card Punch, GA24-3332-6, June 1970). The alphabet falls into three groups of nine, eight and eight letters (IBM F20-0074):

  • A to I: zone 12 with digits 1 to 9;
  • J to R: zone 11 with digits 1 to 9;
  • S to Z: zone 0 with digits 2 to 9.

The third group starts at 2 because the combination 0-1 is taken: it is the slash. The notation used by IBM and by the standards writes the rows a column is punched in, zone first, joined by hyphens: 0-1 is the slash, 12-4 is D.

Special characters have one, two or three holes. Three are lone zones or the slash: & is 12 alone, the hyphen is 11 alone, / is 0-1. All the rest of the 029's specials use the 8 row, one digit row from 2 to 7, and optionally a zone (Jones, Punched Card Codes; Jones, cardcode.i):

  • no zone: 8-2 colon, 8-3 #, 8-4 @, 8-5 apostrophe, 8-6 =, 8-7 quotation mark;
  • zone 12: 12-8-2 ¢, 12-8-3 full stop, 12-8-4 less-than sign, 12-8-5 (, 12-8-6 +, 12-8-7 vertical bar;
  • zone 11: 11-8-2 !, 11-8-3 $, 11-8-4 *, 11-8-5 ), 11-8-6 semicolon, 11-8-7 ¬;
  • zone 0: 0-8-3 comma, 0-8-4 %, 0-8-5 underscore, 0-8-6 greater-than sign, 0-8-7 ?; the 029 printed nothing for 0-8-2.

A blank column, no holes at all, is a space. That is the whole code: 63 printable symbols and the blank, and one more pattern, 0-8-2, that the 029 punched but did not print, for the 64 patterns of what IBM called its 64-character set.

Exercise 2. Decode these columns: 11-4; 0-2; 12-8-6; 0-8-4; 8-5; 12.

Exercise 3. A card reads, from column 1: 11-1, 12-1, 12-3, 11-8, 0-4, 12-1, 11-9, 12-4. What word is it?

Exercise 4. Punch the line .

Answer 2. 11-4 is M, the fourth letter of the second group; 0-2 is S; 12-8-6 is +; 0-8-4 is %; 8-5 is an apostrophe; a lone 12 is &.

Answer 3. J (11-1), A (12-1), C (12-3), Q (11-8), U (0-4), A, R (11-9), D (12-4): JACQUARD.

Answer 4. I is 12-9, B is 12-2, M is 11-4; column 4 is blank; the digits 0, 2 and 9 are single holes in rows 0, 2 and 9. Seven columns, eleven holes.

From a column to a byte

When IBM designed System/360, its 8-bit code, the Extended Binary Coded Decimal Interchange Code (EBCDIC), kept the card's structure; Jones calls EBCDIC "a direct descendant of the 6-bit BCD codes" of earlier IBM computers. The 1980 code standard prints the EBCDIC card code as an appendix and gives an example: "hole pattern 11-8-4 is in position 5C", that is, the asterisk is byte 5C (ANSI X3.26-1980 as FIPS PUB 14-1). The rule is visible in the code page (Unicode Consortium, CP037):

  • a letter's byte has its digit punch as the low four bits and its zone as the high four: 12-zone letters are C1 to C9, 11-zone letters D1 to D9, 0-zone letters E2 to E9;
  • a digit d is Fd: F0 to F9;
  • the specials with an 8 punch sit in columns 4 to 7 of the code table by zone (4 for 12, 5 for 11, 6 for 0, 7 for none) and rows A to F by digit (A for 2 up to F for 7): 12-8-3, the full stop, is 4B; 0-8-3, the comma, is 6B; 8-6, the equals sign, is 7E.

Exercise 5. What are the EBCDIC bytes of the word JACQUARD?

Answer 5. J D1, A C1, C C3, Q D8, U E4, A C1, R D9, D C4. Notice that the bytes jump between C, D and E as the zone changes: the alphabet is not contiguous in EBCDIC, the fact behind the garbled text described in the article on mojibake and code pages.

A second exercise in compression shows why six bits were enough for the 64 patterns. Jones gives an encoding from a Digital Equipment Corporation minicomputer instruction as an example: two bits say whether there is a 0 or 12 punch and whether there is an 11 or 12 punch, and four bits are the binary value of the digit rows added together. The 8 row adds 8, so 12-8-4 becomes zone bits 11 and numeric 8 + 4 = 12, 1100: 111100. No single digit row can make 10 to 15, which is exactly why the specials could be built on the 8 row.

What a machine senses

A card machine reads with wire brushes, one per column, pressing the card against a metal contact roller. Card stock does not conduct, so no current flows until a hole passes; then the brush touches the roller for an instant. The machine does not see the hole's position directly: it sees when the pulse comes. "A hole in the 3 position of a column gives an impulse at a different time than a hole in the 9 position", says IBM's manual, and its diagram shows the rows passing in the order 9, 8, 7 down to 0, 11 and 12, the card entering 9 edge first (F20-0074). Two holes in one column give two pulses at two times. The punched hole is, to the machine, a time.

The sorter uses the same trick on one column. The pulse from the hole in the column being sorted opens a path to the matching pocket: a 3 in column 17 sends the card to pocket 3. There are 13 pockets, one per row and one for blank columns. Because a sorter reads one column at a time, a five-digit field needs five passes, and a letter needs two, one for its digit and one for its zone; IBM sorters ran at 450 to 2,000 cards a minute (F20-0074). Sorting starts at the rightmost column of the field, so that each later pass, which keeps cards in arrival order inside each pocket, preserves the work of the earlier ones; the Learn article works through a deck by hand.

Exercise 6. A deck of 3,000 student cards must be put in order of a five-letter surname code. How many passes does it need, and how long does it take on an IBM 82 at 650 cards a minute, ignoring the time to collect the pockets?

The verifier senses differently. IBM's 56 verifier looked like a keypunch; a second operator typed the same document, and for each key a thin plunger tried to pass through the holes the key should have made. If the plunger met card instead of a hole, the card stopped, and the machine notched the top edge over the column in error (F20-0074). It is the double-entry check that every "confirm your password" field still performs.

Answer 6. Five letters at two passes each is ten passes; 3,000 cards × 10 = 30,000 card passes; 30,000 ÷ 650 ≈ 46 minutes.

A program on cards

IBM sums it up: "one card represented a line of code" (IBM, The IBM punched card). The standard for 77 (the name comes from Formula Translation) still defines a line of a FORTRAN program as "a sequence of 72 characters", with a C or an asterisk in column 1 for a comment, an optional statement label in columns 1 to 5 and a continuation mark in column 6 (ANSI X3.9-1978 as FIPS PUB 69-1). The remaining eight columns, 73 to 80, the standard ignores; programmers used them for identification and a sequence number. A FORTRAN card holding the statement Z(1) = Y + W(1) reads, by column:

ColumnsContentPunches
1 to 6blank (no label, no continuation)none
7Z0-9
8(12-8-5
911
10)11-8-5
11blanknone
12=8-6
13 to 21the rest of the statementas the code gives
22 to 72blanknone
73 to 80identification and sequence, for example PROG0010letters and digits

A deck was a physical object. At 0.007 inch a card, a 1,000-card program is 7 inches, about 17.8 centimetres, tall. Jones quotes a university stores catalogue that still sold blank cards in 1996, in boxes of 2,000, which makes a box 14 inches of cards. If the deck fell, the sequence numbers saved it: a sorter put it back in order column by column. Paul Krzyzanowski of Rutgers University writes that programmers numbered cards in steps of ten so that new cards could go in between (Krzyzanowski, 80×24), and Wikipedia shows a deck with a diagonal stripe drawn across the top edge, a quick way to see a card out of place (Wikipedia, Punched card).

Mistakes could not be erased. John Walker, remembering his UNIVAC years, puts it in a line: "You can't erase a hole" (John Walker, UNIVAC Memories: Punch Card Gallery). The 029 offered the next best thing: the operator duplicated the correctly punched fields into a fresh card and keyed only the field in error (GA24-3332-6). A card record was, in today's terms, append-only.

The pieces punched out of the card also had a name. IBM's usage favoured "chips"; teleprinter tape punches had "chad boxes" from the 1930s, and by the 1960s, Jones writes, chad was the usual word for keypunch waste too, collected through a chad chute into a chad box. The joke etymologies, a Mr Chadless or "card hole aggregate debris", are only jokes in his account (Jones, Chad: from waste product to headline).

Do not fold, spindle or mutilate

IBM calls it the card's catchphrase. Steven Lubar of the Smithsonian traced it. The first cards had no warnings; the warnings arrived in the 1930s, "exactly the same time that the public began to see punch cards". The University of Iowa's registration cards of the 1930s read "Do not fold or bend this card"; cards in an IBM sales brochure of the same decade read "Do not fold, tear, or mutilate this card"; when the canonical wording first appeared, Lubar could not establish (Lubar). He explains the middle word for readers who no longer know it: a spindle was the upright spike on a clerk's desk on which finished papers were impaled, and a spindled card would have a hole where no hole belonged.

Jones keeps a retail card printed "Do not fold or mutilate" for customers to handle, with a tab the cashier tore off when the card was processed; a card with the tab removed, he points out, read to the machines as a punch in column 1, row 12 (Jones, history). The warning was not decoration: a tear was a hole, and a hole was data.

Cards reached everyone through the cheque and the bill. The Agricultural Adjustment Administration's punch-card cheques of 1933 were among the first cards handed to the public; Social Security cheques were cards from 1936; telephone, utility and department-store bills followed in the 1950s (Lubar). The glossary entry on the phrase follows what came next. At the University of California, Berkeley, where class registration ran on cards, the Free Speech Movement of 1964 took the card as its symbol of the impersonal university. Lubar quotes a student who pinned a sign to his chest: "I am a UC student. Please don't bend, fold, spindle or mutilate me." Others punched cards with "FSM" and "STRIKE" and wore them as badges. Lubar's reading is that the card had become "a symbol of alienation", the place where a person met a system that could only see holes.

People on cards

's census card was a card per person: "This system used only one card per person", in the words of the United States Patent and Trademark Office's history of his invention, and Hollerith himself called a census "a photograph of the social and economic conditions of a people" (United States Patent and Trademark Office, Count me in). Whoever held the deck could count any combination of the facts on it.

Germany's censuses of 1933 and 1939 were tabulated on Hollerith machines built by the Deutsche Hollerith Maschinen Gesellschaft (Dehomag), IBM's German subsidiary. The United States Holocaust Memorial Museum (USHMM) holds a Dehomag D11 tabulator, sorter and punch of the type used, and a facsimile of a card from the 1933 census, issued by the Prussian statistical office, with 60 columns and 28 categories of personal information printed along its edge, among them residential district, age, religion, occupation and number of children (USHMM, Dehomag D11 tabulator, irn521586; USHMM, census punch card facsimile, irn521589). What the machines did with that information is a question the museum answers carefully. Its encyclopaedia says that aggregated census data processed by Hollerith machines could tell the government how many Jews lived in a German city, because the 1939 census recorded "race" as defined by the Nuremberg Laws; and it says that "The location and identification of Nazi victims did not rely on modern technology, as sometimes claimed in the popular media" Officially attributed by the USHMM Holocaust Encyclopedia, but on paper records and local knowledge, since about three quarters of the Jews killed lived in Poland, the Baltic states and the Soviet Union, where such equipment was not in use. Hollerith machines came to the headquarters of the concentration camp system in 1942, the museum adds, to track the work skills of living prisoners (USHMM, Locating the victims).

Brazil's census card of 1920, which the Learn article decodes column by column, carried sex, age, marital status, nationality, occupation, literacy and two kinds of physical disability, each as a digit in a fixed column (Directorate General of Statistics, Special instructions for tabulating the population census). The census instructions treat these as statistics, and that is what they were for. The same structure that makes a card easy to count makes it easy to select from, which is why the question of who holds a deck, and for what, came with the card from its first day.

Exercise 7. A 1920 Brazilian census card has 0 in column 17, 0071 in columns 18 to 21, 0 in column 22 and 1 in column 29. Who is this?

Answer 7. Column 17 is sex, 0 for men; columns 18 to 20 hold the age, 007, and column 21 its unit, 1 for years; column 22 is marital status, 0 for single; column 29 is literacy, 1 for a person who cannot read and write. A boy of seven who cannot yet read.

The last cards: ballots

Cards left the computer room long before they left public life. IBM introduced pre-scored punch-card ballots, the Votomatic, in 1965. On a Votomatic the voter pushed a stylus through the middle of a pre-scored rectangle, which was supposed to fold over the stylus tip and tear free at all four corners (Jones, Chad). Jones records the early troubles (a rainstorm that drenched a load of ballots in Detroit's 1968 election), notes that Iowa had effectively banned punch-card ballots by 1984 and that Computer Professionals for Social Responsibility called for a general ban in 1988, and estimates that a third of United States polling places still used them in the presidential election of 2000 (Jones, history). The problem was the chad. Jones defines hanging chad as chad "only partially detatched" from its card, trapdoor chad if it hangs by two corners and dangling chad if by one, and shows how such pieces can be pushed back into their holes or torn loose in later handling, so that the same ballot can look different from one inspection to the next. Jones notes the irony that there had been "chadless" paper-tape punches, made on purpose to leave each piece hinged, but "There was never a chadless keypunch": a hinged chip would have jammed a card reader (Jones, Chad).

After 2000 the law caught up. The Help America Vote Act of 2002 paid states to replace "punch card voting systems or lever voting systems" in every precinct that had used them in the November 2000 federal election, with a deadline of November 2004, or the first federal election after 1 January 2006 for a state that certified good cause (Help America Vote Act of 2002, section 102).

What the card room practised

The card room ran on habits that today's engineers would recognize, and IBM's manuals wrote them down (F20-0074):

  • Double keying. Every card was punched by one operator and verified by a second, keying the same source; errors were notched, not trusted.
  • Control totals. Totals of the source documents were compared with totals listed from the cards; a mismatch sent the clerk back to the register to find the missing or wrong card.
  • An audit trail. Every figure on a report could be traced back to the cards and from the cards to the documents.
  • Sequence numbers. A sorted file could be checked for order on a collator, and a dropped deck rebuilt on a sorter.
  • Append, do not overwrite. A wrong card was replaced, not corrected, because "You can't erase a hole".

The Brazilian census clerks of 1920 were measured on these habits: the census report quoted by the statistics office's historian says few exceeded an error rate of 5 per cent, most made errors on about 1 per cent of cards or fewer, and the punching teams reached 100,000 cards a day, 800 to 1,000 per assistant in four hours (Francisco Romero Feitosa Freire, Pre-census, Brazilian Institute of Geography and Statistics). In Brazil the machine also left a word: the payslip is still a holerite, from the English "hollerith" (Michaelis, holerite).

What to remember

  • Hold the card with the 12 edge up and the cut corner where your deck's convention puts it; columns run 1 to 80 from left to right, rows 12, 11, 0, 1 to 9 from top to bottom.
  • A digit is one hole; a letter is a zone (12 for A to I, 11 for J to R, 0 for S to Z) plus a digit; most specials are an 8, a digit from 2 to 7 and an optional zone.
  • EBCDIC keeps the card's shape: zone in the high half of the byte, digit in the low half.
  • Machines sense holes as times: a brush pulse at "3 time" means a hole in row 3.
  • A sorter reads one column per pass; start with the rightmost column.
  • The card's warnings, cheques, census records and ballots made it the first place where most people met a database, and the questions it raised about who sorts the deck have not gone away.

Sources