Microsoft KB Archive/47892

“PROCEDURE DIVISION Missing..,” Extra Periods in SPECIAL-NAMES

PSS ID Number: Q47892 Article last modified on 04-20-1993

3.00 3.00a | 3.00 3.00a MS-DOS | OS/2

Summary: The error “209-S PROCEDURE DIVISION Missing or unknown statement” occurs if you include more than one period in the SPECIAL-NAMES section of your COBOL program. The entire SPECIAL-NAMES section is considered one sentence and should not contain more than one period. The following two examples illustrate the error condition and correct methods for using the SPECIAL-NAMES section: * Generates a “PROCEDURE DIVISION…” error: ENVIRONMENT DIVISION. SPECIAL-NAMES. * periods in next two lines should be removed CONSOLE IS CRT. CURSOR IS data-name1. CRT STATUS IS data-name2. * Compiles correctly: ENVIRONMENT DIVISION. SPECIAL-NAMES. CONSOLE IS CRT CURSOR is data-name1 CRT-STATUS IS data-name2.

Additional reference words: 3.00 3.00a Copyright Microsoft Corporation 1993.