"IDENTIFICATION DIVISION.
" starts in column one.
IDENTIFICATION DIVISION. PROGRAM-ID. TYPER. AUTHOR. your name. ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT INPUT-FILE ASSIGN TO "TYPER_INPUT". DATA DIVISION. FILE SECTION. FD INPUT-FILE LABEL RECORDS ARE STANDARD DATA RECORD IS INPUT-REC. 01 INPUT-REC. 02 TEXT-LINE PIC X(80). WORKING-STORAGE SECTION. 01 MORE-RECORDS PIC XXX VALUE "YES". PROCEDURE DIVISION. MAIN-PARAGRAPH. OPEN INPUT INPUT-FILE. DISPLAY "HERE GOES--". READ INPUT-FILE AT END MOVE "NO" TO MORE-RECORDS. PERFORM PROCESS-A-RECORD UNTIL MORE-RECORDS = "NO". CLOSE INPUT-FILE. DISPLAY "DONE". STOP RUN. PROCESS-A-RECORD. DISPLAY INPUT-REC. MOVE SPACES TO INPUT-REC. READ INPUT-FILE AT END MOVE "NO" TO MORE-RECORDS.
$ cobol typer /list
$ link typer $ run typer
$ delete typer.obj;*, typer.exe;* $ purge typer.* $ print/delete typer.lis
Place the lab in the instructor hand-in box in BUS R6E, the "terminal room".Your-Name Lab 4.7: COBOL compile and run TABER CSC135