Example how to handle sequential files in COBOL. Tested on MS Cobol 2.20 & Microfocus Visual Cobol 2.2