Cross Reference Sees COMP-5 Variable as COMP-3 in COBOL 3.0
PSS ID Number: Q40144 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: Microsoft COBOL versions 3.0 and 3.0a feature the ability to produce cross-reference list files by using the XREF compiler directive and specifying a LST filename on the command line. When you generate a cross reference in versions 3.0 or 3.0a as follows, the resulting list file recognizes a COMP-5 variable as a COMP-3 variable: COBOL filename /xref,objname,listfilename; Microsoft has confirmed this to be a problem in versions 3.0 and 3.0a. This problem was corrected in Microsoft COBOL Professional Development System version 4.0 for MS-DOS and MS OS/2.
More Information: The example code below demonstrates this problem. You can compile this program with the following command line: COBOL test.cob /xref, test, test; *This is test.cob WORKING-STORAGE SECTION. 01 reset-code PIC 9(5) VALUE 6976 COMP-5. PROCEDURE DIVISION. DISPLAY reset-code. STOP RUN.
Additional reference words: 3.0 3.0a Copyright Microsoft Corporation 1993.