Informix Error Messages and Error Codes From Error 22284 to 22554

SQLServerF1

Informix Error Code -22284 Incorrect level(s) of indirection on variable variable-name.
A pointer variable is used with the wrong number of level indirection. Check the indirection levels in the ESQL statement.
Informix Error Code -22285 Incorrect dimension on table variable variable-name.
An entry in a multidimensional array is illegally accessed. Indexes for multidimensional arrays must be specified when used. For example, suppose a host variable is declared in ESQL/COBOL as follows:

01 VARA X(10) OCCURS 3 TIMES.
It will return an error if it is used in an SQL statement as follows because you must specify the index into which you want to insert (that is, VARA(1)):
INSERT INTO TAB VALUES ($VARA)

Informix Error Code -22554 Field type field-type-name has been used out of context.
This error is generated when, for example, the field type TYPE is used where COUNT is expected. Check the syntax and usage for system-descriptor field names in the discussion of the ALLOCATE DESCRIPTOR and GET DESCRIPTOR statements in Chapter 1 of the Informix Guide to SQL: Syntax. For a discussion of the system-descriptor area, see the manual for your embedded-language product.
Informix Error Code -22555 The type of host-variable does not match the expected type for this field.
This error is generated when a variable is expected to have a certain type but does not. For example, an TYPE field accepts only integer types when a value is assigned to it or retrieved from it. If the variable type is not integer, an error is generated. Check the syntax and usage for system descriptor field names in the discussion of the ALLOCATE DESCRIPTOR and GET DESCRIPTOR statements in Chapter 1 of the Informix Guide to SQL: Syntax. For a discussion of the system descriptor area, see the manual for your embedded-language product.

Above are list of Informix Error Messages and Errors Codes or Status Codes or Exit Codes along with Error and Warning messages received while performing certain operation against Informix applications or related products.

What are Informix Error Messages?
All Informix messages returned by the Informix server are assigned an error code.

In general, each Informix error contains the following information:
• The Informix Error Code or Informix Error status
• The message text. This text is usually returned with the Error code. Some messages employ word substitution, where the word substituted represents the system-replacement of a term more specific to the occurrence.
• An explanation of how the error may have occurred.

Hope this was helpful.

Thanks,
SQLServerF1 Team
Information about Informix Error Codes or Status Codes or Exit Codes and Error Messages on Windows, Linux Operating Systems.

 

Leave a Reply

Your email address will not be published. Required fields are marked *