Microsoft KB Archive/44759

From BetaArchive Wiki

Animator Does Not Allow Word Storage (IBMCOMP Directive)

PSS ID Number: Q44759 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: When using the IBMCOMP directive, a “Subscript Out Of Range (153)” error is generated when animating, for example, the TICTAC.CBL sample program with the COBOL Compiler versions 3.0 and 3.0a. This problem occurs only in the debugging tool ANIMATE in versions 3.0 and 3.0a. This problem has been corrected in Microsoft COBOL Professional Development System version 4.0. The IBMCOMP directive turns on word storage mode. In this mode, every data item of USAGE COMP occupies either 2 bytes or a multiple of 4 bytes. This problem occurs because the animator has difficulty reading word storage mode. There are two possible workarounds for this problem: 1. Do not compile with the IBMCOMP directive when using ANIMATE. 2. Compile with both the IBMCOMP and MS(2) directives.

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