The
tub file was a technique used in the
punched card era to speed generation of data files. Multiple copies of frequently used cards were prepunched and stored in trays with index tabs between card sets, arranged so that cards would be easy to find. For example a wholesaler might have a tub file with cards for frequent customers and for each inventory item. Instead of
keypunching a set of cards for each purchase order, a clerk would pull out a customer card and then a card for each item that customer ordered. The resulting deck could then be run through a
tabulating machine to produce an invoice. This technique was an early form
random access memory and was the initial inspiration for the invention of the
hard disk at IBM's San Jose Laboratory, what eventually became the
IBM 305 RAMAC.