Troubleshooting
Problem
Attempts to compile COBOL source programs that contain COMP-X with IBM COBOL for AIX, 3.1 results in the error "IGYDS1089-S "COMP-X" was invalid.".
Symptom
When you use IBM COBOL for AIX to compile source code that contains COMP-X, you receive the message shown below:
IGYDS1089-S "COMP-X" was invalid. Scanning was resumed at the next
area "A" item, level-number, or the start of the next clause.
Cause
The COBOL for AIX compiler does not support COMP-X.
Resolving The Problem
WORKAROUND:
Change COMP-X to COMP-5 and make the corresponding change to the PICTURE clause.
You may need to keep the allocated storage for the data item the same.
The following table summarizes COMP-5 storage allocation:
----------------------------------------------------
Picture Storage representation
----------------------------------------------------
S9(1) thru S9(4) Binary halfword (2 bytes)
S9(5) thru S9(9) Binary fullword (4 bytes)
S9(10) thru S9(18) Binary doubleword (8 bytes)
9(1) thru 9(4) Binary halfword (2 bytes)
9(5) thru 9(9) Binary fullword (4 bytes)
9(10) thru 9(18) Binary double word (8 bytes)
--------------------------------------------------
For more information about COMP-5, review the USAGE clause in the COBOL for AIX, V3.1 Language Reference.
Was this topic helpful?
Document Information
Modified date:
08 August 2018
UID
swg21418942