Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/38280

From BetaArchive Wiki

“Unknown Data Description Qualifier”; LENGTH Is Reserved Word

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

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

The information in this article applies to:
- Microsoft COBOL for MS-DOS and OS/2, versions 3.0 and 3.0a

Summary: The example on Page 8-11 of the “Microsoft COBOL Version 3.0: Operating Guide” mistakenly uses the reserved word LENGTH as a data name. This will cause an error at compile time. The data name LENGTH should be changed to a non-reserved word. The code example below, when compiled with the default parameters, will return the following error: ** 233-S ************** ** Unknown data description qualifier The following is a code example: working-storage section. 01 function pic 99 comp-x value 8. 01 parameter. 03 LENGTH pic 99 comp-x value 20. procedure division. display “test”. stop run. To make the above program compile, you will need to change the reserved word LENGTH to some other data name, such as PATH-LENGTH.

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