Informix Error -22265: A sign clause was specified for an unsigned numeric type.
Cause and resolution
A sign clause was specified for an unsigned numeric type.
If you have a SIGN clause but did not specify "S," the compiler cannot process the data type. Check whether the variable is signed or unsigned and declare it accordingly.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-22265 fires when a SIGN clause is present but the PICTURE clause didn't specify S
(signed) — per the official guidance, the compiler can't process the data type in that
combination.
- A
SIGNclause on a variable whosePICTUREdoesn't specifyS, per the official guidance — the direct, only cause.
Solutions / Resolution
- Check whether the variable should be signed or unsigned and declare it
accordingly, per the official guidance — add
Sto thePICTUREif signed is intended, or remove theSIGNclause if unsigned is intended.
Examples
A SIGN clause on an unsigned PICTURE
01 AMT PIC 9(5) SIGN IS LEADING.
Corrected (signed)
01 AMT PIC S9(5) SIGN IS LEADING.
Diagnostic Checks
- Check the flagged variable's
PICTUREclause for anS, and reconcile it with the presence of aSIGNclause.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -22265 in this set yet.
A SIGN clause was used on an unsigned (PICTURE without S) numeric type — add S or
remove the SIGN clause.