In the 2nd Medical Dept. of the Technical University of Munich, endoscopic retrograde cholangiopancreatography (ERCP) reports are written with the aid of a computer. The doctor doing the examination enters the ERCP data into screen masks. The data are stored at once in a data bank. This data bank system permits immediate error checks of the variables entered, singly and in combination. Errors can be corrected in a loop. Generating of ERCP reports is controlled by a text file, which contains both control statements and standard phrases. A special program for the document generating was developed by the authors and has been used for 15 years in various applications.