Microsoft KB Archive/31924

SCREEN SECTION Variables with REQUIRED Clause Are Blanked

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

2.20 MS-DOS

Summary: When the ENTER key is pressed in response to a SCREEN SECTION variable with a REQUIRED clause, the field is blanked before prompting again for valid input. Removing the REQUIRED clause retains printed-variable information, but it eliminates functionality. Microsoft has confirmed this to be a problem in Microsoft COBOL Version 2.2. This problem was fixed in version 3.0. Microsoft COBOL Version 2.1 does not have this problem, and does not clear the field.

More Information: The following is an example: identification division. program-id. arrayscreens. environment division. data division. working-storage section. 01 hold-type pic 9 value 1. 01 ws-tran-type pic 9 value 0. screen section. 01 t-screen. 05 rev-vid pic 9 from hold-type to ws-tran-type REQUIRED. procedure division. para1. display t-screen. accept t-screen. stop run.

Additional reference words: 2.20 Copyright Microsoft Corporation 1993.