Microsoft KB Archive/21202

Explanation of COMPUTATIONAL Data Types in COBOL

PSS ID Number: Q21202 Article last modified on 11-16-1992

2.00 2.10 2.20 MS-DOS

Summary: The following COMPUTATIONAL types are supported in MS-COBOL Versions 2.00, 2.10, and 2.20: 1. COMP-0 Represents a two-byte integer in the range -32,768 to +32,767. 2. COMP-3 Represents a packed binary-coded (internal decimal) field. The decimal is stored in BCD format; two digits per byte up to 18 digits. 3. COMP-4 Represents a four-byte integer in the range -2,147,483,648 to +2,147,483,647. Please refer to “Microsoft COBOL Compiler Reference Manual,” Pages 92-94 and Page 164.

Copyright Microsoft Corporation 1992.