Microsoft KB Archive/61347

No Beeping on ACCEPT Statement with RM Directive and NO BEEP

PSS ID Number: Q61347 Article last modified on 05-02-1990

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

Summary: Using the RM (Ryan-McFarland) compiler directive in Microsoft COBOL versions 3.00 and 3.00a causes the computer to beep whenever an ACCEPT statement is performed. This is a feature of the RM compatibility directive. To turn the beep off, a special form of the ACCEPT statement is allowed using the NO BEEP clause. This special form of the ACCEPT statement is described on Page E-7 of the “Microsoft COBOL Compiler 3.0: Language Reference Manual” for Microsoft COBOL version 3.00. This information applies to Microsoft COBOL Compiler versions 3.00 and 3.00a for MS-DOS and MS OS/2.

More Information: The following code, NOBEEP.CBL, shows the use of the special NO BEEP clause to turn off beeping on the ACCEPT statement when using the RM directive. Compile and LINK as follows: COBOL NOBEEP.CBL ; LINK NOBEEP ; The following is NOBEEP.CBL: $SET RM IDENTIFICATION DIVISION. PROGRAM-ID. BEEP-PROG. DATA DIVISION. WORKING-STORAGE SECTION. 01 TEST PIC X. PROCEDURE DIVISION. ACCEPT TEST NO BEEP.

Copyright Microsoft Corporation 1990.