Microsoft KB Archive/33218

Ways to Blank or Clear the Screen in COBOL Version 3.0

PSS ID Number: Q33218 Article last modified on 04-21-1993

3.00 | 3.00 MS-DOS | OS/2

Summary: Following are the different ways to clear the screen in Microsoft COBOL Version 3.0. Not all of these methods will work in previous versions of Microsoft COBOL. Some of the following examples are fragments which will need to be written into a complete program in order to compile. The following is a code example: 1. SCREEN SECTION. 01 CLEAR-SCREEN. 05 BLANK SCREEN. PROCEDURE DIVISION. DISPLAY CLEAR-SCREEN. STOP RUN. 2. ENVIRONMENT DIVISION. CONFIGURATION SECTION. SPECIAL-NAMES. CONSOLE IS CRT. PROCEDURE DIVISION. DISPLAY SPACES UPON CRT WITH BLANK SCREEN. STOP RUN. 3. The BLANK SCREEN clause will clear the screen when it occurs in a screen section definition and is subsequently displayed in the procedure division. 4. A clear screen will also occur if a display statement has the WITH BLANK SCREEN after the display identifier.

Additional reference words: 3.00 Copyright Microsoft Corporation 1993.