Without Ctrl+S, 2,000 Lines of Code Weighed 10 Pounds — and Took Until the Late 1970s to Leave Paper Behind

Before Ctrl+S existed, 2,000 lines of code filled a 10-pound box of punched cards or paper tape until time-sharing disks and 8-inch floppies took over.

分享
Without Ctrl+S, 2,000 Lines of Code Weighed 10 Pounds — and Took Until the Late 1970s to Leave Paper Behind

From IBM 029 Keypunches and 13-pocket Sorters to 8-inch Floppies — how Programmers Stored Code before Personal Disk Files

To run a program at a university computing center in the late 1960s, you walked up to the submission counter holding a long cardboard box. Packed full with 2,000 stiff paper cards, the box weighed about 10 pounds. Computing centers did not give ordinary users disk folders back then, and keypunches had no save key, so one line of code sat on one card.

Before handing the deck through the window, experienced programmers squared the stack on the table and drew a thick diagonal stripe across the top edge with a red felt marker, labeling subroutine sections along the way. Two thousand cards sat loose inside the tray with no glue holding them together. Drop a box on a hallway floor or shuffle a few cards out of turn, and the red stripe snapped into misaligned gaps at a glance.

Punched card program deck with diagonal red stripe

A punched card program deck bound with a rubber band. A red diagonal marker stripe runs across the right half of the top edge, subroutine names such as SORTP and SKEL are written across the left, and the front card is an IBM OS/360 JOB card. Photo by ArnoldReinhold, CC BY-SA 3.0, via Wikimedia Commons.

Fixing Typos with the DUP Key and Sorting Dropped Decks

Programmers punched these decks on IBM 029 keypunches in the adjacent room. Blank stock measured 7⅜ inches wide, 3¼ inches tall, and 0.007 inches thick, stacked inside a feed hopper on the right side of the machine. Each card held 80 vertical columns, a width settled in 1928 when IBM engineer Clair D. Lake squeezed nearly twice the data onto the same card stock by swapping old 45 round holes for narrow rectangles.

IBM 029 keypunch machine

An IBM 029 keypunch introduced in 1964 alongside System/360. Every keystroke drove a mechanical punch die directly without an electronic buffer. Photo by Tecnoparador, CC BY-SA 2.0, via Wikimedia Commons.

The IBM 029 contained no electronic memory buffer and no backspace key. Press a letter and mechanical dies cut the holes on the spot while printing the character across the top margin. Hit the wrong key at column 70 of a FORTRAN line, and the card belonged in the trash bin. Retyping did not start back at column 1, though: you slid the spoiled card into the read station, fed a fresh blank on the right, held DUP to copy columns 1 through 69 verbatim, and punched column 70 again.

Marker stripes caught a few swapped cards, nothing more. Dump two thousand cards across a stairwell, and reading FORTRAN statements by eye to rebuild the deck took hours. When John Backus's team wrote the first IBM 704 FORTRAN manual in October 1956, page 10 reserved the final eight columns away from the compiler: columns 1 to 5 carried statement numbers, column 6 marked continuations, columns 7 to 72 held code, and the rest sat open:

"Columns 73-80 are not read by FORTRAN and may be punched with any desired identifying information."
FORTRAN 80-column punched card showing PROJ039

An 80-column FORTRAN punched card displaying Z(1) = Y + W(1) across the statement columns and PROJ039 in the IDENTIFICATION field spanning columns 73 to 80. Photo by ArnoldReinhold, CC BY-SA 2.5, via Wikimedia Commons.

Programmers punched sequence numbers rising by hundreds (00000100, 00000200, and onward) into columns 73 through 80, leaving room to slip 00000150 between two lines without repunching later cards. Should a whole tray hit the floor, an IBM 082 or 083 mechanical card sorter rescued the deck. With 13 output pockets running at 650 to 1,000 cards per minute, the sorter routed cards into buckets 0 through 9 by column 80, stacked them in order, moved its brush to column 79, and repeated across all eight digits until radix sort restored 2,000 lines in about twenty minutes.

Why Paper Tape Turned Seven Punched Holes into 0x7F

Big computer centers could afford rows of keypunches and sorters, whereas university labs running DEC PDP minicomputers rarely had them. Minicomputer users kept source code beside teletypewriters on rolls of continuous paper tape, one inch wide, carrying seven or eight data holes across each row around a line of tiny sprocket holes down the center.

Close-up of punched paper tape

Close-up of punched paper tape. Tiny center holes engaged the drive sprocket while larger outer holes encoded binary bits; punching all seven positions erased the byte. Photo by Mbrickn, CC BY 4.0, via Wikimedia Commons.

Because an entire program shared one strip of paper, one typo left no single card to pull and discard. Operators flipped a lever to step the tape backward one row and struck RUBOUT, punching every bit hole across all seven tracks. All seven ones in binary gave 127, or 0x7F in hexadecimal, which paper-tape readers skipped over as empty paper. Drafting the ASCII standard in RFC 20 in October 1969, Vint Cerf logged the mechanism under character 127, DEL:

"DEL (Delete): This character is used primarily to "erase" or "obliterate" erroneous or unwanted characters in perforated tape. (In the strict sense, DEL is not a control character.)"

Moving from Time-sharing Disks and 8-inch Floppies to 80-byte Records

IBM shipped its first commercial disk storage system, the 305 RAMAC, back in 1956 with fifty 24-inch aluminum platters holding 5 million characters (about 5 MB) for a lease of $3,200 per month. At those rates, spinning platters belonged to airline reservations and bank ledgers rather than student source listings.

Once disk prices dropped and time-sharing arrived in the late 1960s, minicomputer labs dropped paper tape first. Between 1969 and 1970 at Bell Labs, Ken Thompson and Dennis Ritchie built Unix on DEC PDP-7 and PDP-11 machines backed by 2.5 MB RK05 removable disk cartridges, giving every user private directories. Unix turned files into plain byte streams separated by \n, ending fixed-width lines and clearing punched tape out of research labs around 1973; Altair 8800 BASIC resurrected tape briefly in 1975 before Kansas City cassette tapes and 5.25-inch floppies on the Apple II and TRS-80 closed out the decade.

Mainframe centers shed paper much more slowly. IBM introduced the 129 card data recorder in 1971 with an 80-character electronic buffer so operators could backspace mistakes before the dies dropped, alongside TSO time-sharing for System/370. Two years later, the 1973 IBM 3740 data entry system replaced keypunches with reusable 8-inch floppy disks.

8-inch, 5.25-inch, and 3.5-inch floppy disk drives

Floppy disk drives in 8-inch, 5.25-inch, and 3.5-inch formats, left to right. IBM's 8-inch disk began replacing card trays inside data entry rooms in 1973. Photo by Michael Holley (Swtpc6800), Public Domain, via Wikimedia Commons.

Even after magnetic media replaced cardboard, compilers and batch pipelines still expected 80-column cards underneath. Excluding index and spare tracks, a single-sided 3740 diskette held 73 tracks of 26 sectors, totaling 1,898 records of 128 bytes each, so one floppy held enough 80-byte card images for almost a full 2,000-card box. Mainframe datasets kept fixed-length LRECL=80 files too: save the five-character statement I = 1 inside TSO or VM/CMS, and the system padded 75 trailing spaces to complete columns 73 to 80 as line-number slots.

University and corporate machine rooms continued pulling out their last card readers and sorters into the first half of the 1980s. Cards and paper tape left two quiet artifacts inside modern tools: ASCII 0x7F (DEL) for seven punched holes at the end of the table, and the faint 80-character guide line running down your code editor. Once source code lived on disk, another puzzle remained for rooms still lacking glass monitors, which is where we turn next.

References

  1. Clair D. Lake, Record Sheet for Tabulating Machines, U.S. Patent 1,772,492 (filed June 20, 1928; granted August 12, 1930).
  2. John W. Backus et al., The FORTRAN Automatic Coding System for the IBM 704 EDPM: Programmer's Reference Manual, IBM, October 15, 1956, p. 10.
  3. Vint Cerf, ASCII format for Network Interchange, RFC 20, October 16, 1969, §5.2.
  4. IBM Archives, IBM 305 RAMAC (1956), IBM 29 Card Punch (1964), IBM 129 Card Data Recorder (1971), & IBM 3740 Data Entry System (1973).
  5. Douglas W. Jones, Punched Cards: A Brief Illustrated Technical History, University of Iowa Department of Computer Science.